You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sergey Krasnovsky (JIRA)" <ji...@apache.org> on 2015/10/30 19:56:27 UTC
[jira] [Closed] (SOLR-8219) incorrect Content-type in Solr 5.3 for
select handler
[ https://issues.apache.org/jira/browse/SOLR-8219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Krasnovsky closed SOLR-8219.
-----------------------------------
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org