lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (SOLR-2091) wt=json is served as text/plain
Date Fri, 27 Aug 2010 00:20:01 GMT


Yonik Seeley commented on SOLR-2091:

oops - first of all, apologies for reading your issue too fast - I didn't see that you had
already referenced SOLR-1123.

Anyway, IMO it's not a bug - it was a very conscious decision to not use "application/json"
(I actually had started out that way) since it makes it's use in browsers useless w/o extra
plugins.  Until common browsers support JSON natively (or at least display the text w/o prompting),
I think text/plain is the best default.

If we did have a parameter like wt.content-type (or a more general mechanism to set any return
HTTP headers), we could also register another general request handler like /select/json that
defaulted to using application/json.

> wt=json is served as text/plain
> -------------------------------
>                 Key: SOLR-2091
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>    Affects Versions: 1.4.1
>            Reporter: Paul R. Brown
> JSON data should be served as application/json.  SOLR-1123 is equivalent, except that
I think that most people would regard serving JSON as text/plain as a bug.  If SOLR does serve
content with a client-friendly type, then RESTful client frameworks can just do the right
thing with responses.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message