Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
0.9
-
None
-
None
-
Regular Contributors Level (Easy to Medium)
Description
Suggested improvement for Content-Type of responses
Return Content-Type: application/json unless:
- client provides an Accept: header; and
- header includes text/plain, text/* or /; and
- header does not have application/json earlier in the list
This is not proper RFC 2616 negotiation - q factors are ignored - but maybe it's better than current behaviour. Tested with Firefox (which still views responses as text), but not other browsers.
Attachments
Attachments
Issue Links
- is blocked by
-
COUCHDB-521 negotiate_content_type does not detect application/json in HTTP Accept header if it includes a qvakue
- Closed
- relates to
-
COUCHDB-1175 Improve content type negotiation for couchdb JSON responses
- Closed