You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by GitBox <gi...@apache.org> on 2020/12/23 17:21:28 UTC
[GitHub] [incubator-ponymail] arkanovicz commented on pull request #526: Fix http query Content-Type header
arkanovicz commented on pull request #526:
URL: https://github.com/apache/incubator-ponymail/pull/526#issuecomment-750396511
Here is the trace of the HTTP exchange without this patch:
+ Query:
POST /ponymail/mbox/_search HTTP/1.1
Connection: close, TE
TE: trailers
User-Agent: LuaSocket 3.0-rc1
Content-Type: application/x-www-form-urlencoded
Host: elasticsearch:9200
Content-Length: 200
{"size":0,"aggs":{"listnames":{"terms":{"size":500000,"field":"list_raw"},"aggs":{"privacy":{"terms":{"field":"private"},"aggs":{"recent":{"range":{"ranges":[{"from":"now-90d"}],"field":"date"}}}}}}}}
+ Response:
HTTP/1.1 406 Not Acceptable
content-type: application/json; charset=UTF-8
content-length: 97
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org