[ https://issues.apache.org/jira/browse/SOLR-3951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fredrik Rodland resolved SOLR-3951. ----------------------------------- Resolution: Not A Problem hm - reading a bit more - it seems that this is intended, and that you must manually specify that you want the content-type to be application/json when you use wt=json. Seems like an awkward decision. {code} <queryResponseWriter name="json" class="solr.JSONResponseWriter"> <!-- For the purposes of the tutorial, JSON responses are written as plain text so that they are easy to read in *any* browser. If you expect a MIME type of "application/json" just remove this override. --> <str name="content-type">application/json; charset=UTF-8</str> </queryResponseWriter> {code) resolving issue as "not a problem" > wt=json should set application/json as content-type > --------------------------------------------------- > > Key: SOLR-3951 > URL: https://issues.apache.org/jira/browse/SOLR-3951 > Project: Solr > Issue Type: Improvement > Affects Versions: 4.0 > Environment: max osx 10.7.5, SOLR 4.0.0 > Reporter: Fredrik Rodland > > the result with wt=json has content-type text/plain. Should be > application/json. > see SOLR-1123 (which seemed to be fixed for 4.0-ALPHA). > reproduce: > load all tutorial data. > http://localhost:8983/solr/collection1/select?q=*%3A*&wt=json&indent=true > info on request/response: > {code}9:42:14.681[31ms][total 69ms] Status: 200[OK] > GET http://localhost:8983/solr/collection1/select?q=*%3A*&wt=json&indent=true > Content Size[-1] Mime Type[text/plain] > Request Headers: > Host[localhost:8983] > User-Agent[Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) > Gecko/20100101 Firefox/16.0] > Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] > Accept-Language[en-US,en;q=0.5] > Accept-Encoding[gzip, deflate] > Connection[keep-alive] > Referer[http://localhost:8983/solr/] > Cache-Control[max-age=0] > Response Headers: > Content-Type[text/plain;charset=UTF-8] > Transfer-Encoding[chunked]{code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org