Page MenuHomePhabricator

Set content-type to application/json
ClosedPublic

Authored by 20after4 on Mar 29 2017, 9:48 PM.
Tags
None
Referenced Files
F15530084: D17580.id42301.diff
Wed, Apr 23, 1:29 AM
F15517253: D17580.diff
Sat, Apr 19, 1:08 AM
F15493077: D17580.id42301.diff
Sat, Apr 12, 9:20 PM
F15491631: D17580.id42291.diff
Sat, Apr 12, 5:40 AM
F15490273: D17580.id.diff
Fri, Apr 11, 3:53 PM
F15489312: D17580.id42292.diff
Fri, Apr 11, 7:49 AM
F15488567: D17580.diff
Thu, Apr 10, 11:32 PM
F15472369: D17580.id42291.diff
Sat, Apr 5, 12:51 PM
Subscribers

Details

Summary

Elasticsearch really wants a raw json body and it fails to accept
the request as of es version 5.3

Test Plan

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.

[1] https://phabricator.wikimedia.org/P5158

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable