Elasticsearch really wants a raw json body and it fails to accept
the request as of es version 5.3
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T12450: New Search Configuration Errata
- Commits
- rP67a1c4047647: Set content-type to application/json
Tested with elasticsearch 5.2 and 5.3.
Before this change 5.2 worked but 5.3 failed with
HTTP/406 "Content-Type header [application/x-www-form-urlencoded] is not supported" [1]
After this change, both worked.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable