Sergey Krasnovsky created SOLR-8219:
---------------------------------------
Summary: incorrect Content-type in Solr 5.3 for select handler
Key: SOLR-8219
URL: https://issues.apache.org/jira/browse/SOLR-8219
Project: Solr
Issue Type: Bug
Components: clients - java
Affects Versions: 5.3
Reporter: Sergey Krasnovsky
When response format set to json (wt=json), the response content-type is
text/plain ( should be text/json).
Here is comparison between Solr 4.5.3 and Solr 5.3 - Content-type changed in
the response:
Solr 4.5.3
http://localhost:62168/solr/mycore/select?q=OrderNumber:1234567890&wt=json
-- response --
200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 27 Oct 2015 21:38:32 GMT
{"responseHeader":{"status":0,"QTime":1,"params":{"q":"OrderNumber:1234567890","wt":"json"}},"response":{"numFound":1,"start":0,"docs":.......
Solr 5.3:
GET http://localhost:9091/solr/mycore/select?q=OrderNumber:1234567890&wt=json
-- response --
200 OK
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
{"responseHeader":{"status":0,"QTime":1,"params":{"q":"OrderNumber:1234567890","wt":"json"}},"response":{"numFound":1,"start":0,"docs":............
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]