[PATCH] Improved Accept/Content-Type negotiation
------------------------------------------------

                 Key: COUCHDB-234
                 URL: https://issues.apache.org/jira/browse/COUCHDB-234
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 0.9
            Reporter: Brian Candler
            Priority: Minor
         Attachments: couchdb-mime.diff

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.


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

Reply via email to