couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Candler (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-234) [PATCH] Improved Accept/Content-Type negotiation
Date Tue, 03 Feb 2009 19:59:59 GMT
[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.


Mime
View raw message