[
https://issues.apache.org/jira/browse/COUCHDB-2570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940230#comment-14940230
]
Alexander Shorin commented on COUCHDB-2570:
-------------------------------------------
De facto - it is. However, it's also tradeoff between technical correctness and
usability. Now you can just enter the url in you browser and see the response.
With your suggestion, you'll end with downloading meanless files for further
reading.
On second hand, if you want to get application/json response, you must
explicitly ask about. Browsers by default declares that they accepts any of
them "*/*" so CouchDB is fine here to return the one what it assumes the best.
test/plain is the one.
Using JSONView and similar plugins that teaches browsers to send Accept header
with application/json MIME type is optional feature that is not available for
all users.
> 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)