Page MenuHomePhabricator

Set content-type to application/json
ClosedPublic

Authored by 20after4 on Mar 29 2017, 9:48 PM.
Tags
None
Referenced Files
F19944631: D17580.id42301.diff
Thu, Apr 16, 12:04 PM
F19943661: D17580.id42301.diff
Thu, Apr 16, 5:31 AM
F19909906: D17580.id.diff
Thu, Apr 2, 3:15 AM
F19900203: D17580.id.diff
Mon, Mar 30, 2:35 AM
F19898510: D17580.id.diff
Sun, Mar 29, 1:16 PM
F19892191: D17580.id42301.diff
Fri, Mar 27, 10:00 PM
F19857357: D17580.id42292.diff
Mar 13 2026, 11:59 PM
F19836616: D17580.diff
Mar 11 2026, 12:20 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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16218
Build 21537: Run Core Tests
Build 21536: arc lint + arc unit