[ 
https://issues.apache.org/jira/browse/COUCHDB-2570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940223#comment-14940223
 ] 

Sean Lang commented on COUCHDB-2570:
------------------------------------

> This is made to be browsers friendly since they don't understand 
> application/json and cannot render it, but will suggest you to download a 
> file instead.

That's not proper content negotiation, that's just lying to the client. If the 
browser is configured to save JSON files as downloads, then the solution isn't 
to misrepresent the content, it's to fix the browser and make it behave in a 
way you like. And that isn't hard to do - my browser (FF) displays JSON just 
fine because I installed JSONView to handle it.

> All Docs reports wrong content-type
> -----------------------------------
>
>                 Key: COUCHDB-2570
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2570
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Dominic Barnes
>
> On {{1.6.1}}, the {{/:db/_all_docs}} endpoint only reports {{Content-Type: 
> text/plain}} rather than {{application/json}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to