-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Closed
Labels
Description
Elasticsearch version (bin/elasticsearch --version
): 7.8.0-SNAPSHOT
Plugins installed: []
JVM version (java -version
): bundled JDK
OS version (uname -a
if on a Unix-like system): Windows 10
Description of the problem including expected versus actual behavior:
The Voting Config Exclusions APIs (POST and DELETE) both return \n
as the response with a content-type header of application/json
and a content-length of 1. This response isn't valid JSON, and may require special handling in a language client, for example,
Steps to reproduce:
- Make a POST to
/_cluster/voting_config_exclusions?node_names=node1%2Cnode2
or a DELETE request to/_cluster/voting_config_exclusions?wait_for_removal=true
- Observe a response similar to
HTTP/1.1 200 OK
content-type: application/json; charset=UTF-8
content-length: 1
Possible solution(s)
- Return no response body
or
- Return an empty JSON object
{}