You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by William Bell <bi...@gmail.com> on 2014/08/10 00:53:38 UTC

content-type for json is not right

http://hgsolr2sl1:8983/solr/autosuggest/select?q=*%3A*&wt=json

We are getting text/plan as the content-type.

We want it to be application/json ?

DId this change in 4.8.1?


-- 
Bill Bell
billnbell@gmail.com
cell 720-256-8076

Re: content-type for json is not right

Posted by Yonik Seeley <yo...@heliosearch.com>.
It's configurable:
https://issues.apache.org/jira/browse/SOLR-1123

It has been text/plain since v1.0 by default (so it will render in
browsers) - perhaps you just never noticed?

-Yonik
http://heliosearch.org - native code faceting, facet functions,
sub-facets, off-heap data


On Sat, Aug 9, 2014 at 6:53 PM, William Bell <bi...@gmail.com> wrote:
> http://hgsolr2sl1:8983/solr/autosuggest/select?q=*%3A*&wt=json
>
> We are getting text/plan as the content-type.
>
> We want it to be application/json ?
>
> DId this change in 4.8.1?
>
>
> --
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076