Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 14854 invoked from network); 3 Feb 2009 20:00:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 20:00:27 -0000 Received: (qmail 86444 invoked by uid 500); 3 Feb 2009 20:00:24 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 86373 invoked by uid 500); 3 Feb 2009 20:00:24 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 86349 invoked by uid 99); 3 Feb 2009 20:00:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 12:00:24 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 20:00:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96492234C48C for ; Tue, 3 Feb 2009 11:59:59 -0800 (PST) Message-ID: <813443836.1233691199601.JavaMail.jira@brutus> Date: Tue, 3 Feb 2009 11:59:59 -0800 (PST) From: "Brian Candler (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-234) [PATCH] Improved Accept/Content-Type negotiation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [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.