You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Alexander Shorin (JIRA)" <ji...@apache.org> on 2015/02/08 10:39:34 UTC

[jira] [Closed] (COUCHDB-2570) All Docs reports wrong content-type

     [ https://issues.apache.org/jira/browse/COUCHDB-2570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Shorin closed COUCHDB-2570.
-------------------------------------
    Resolution: Not a Problem

The response Content Type is depended on Accept header in request. If it's missed or {{*/*}}, or you'd explicitly asked about {{text/plain}}  CouchDB will respond with {{text/plain}} Content Type. 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. If you make request with explicit {{Accept: application/json}} header CouchDB will respond with this Content-Type.

> 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)