From user-return-3373-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Fri Feb 06 17:58:36 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 94258 invoked from network); 6 Feb 2009 17:58:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 17:58:36 -0000 Received: (qmail 77919 invoked by uid 500); 6 Feb 2009 17:58:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 77897 invoked by uid 500); 6 Feb 2009 17:58:28 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 77846 invoked by uid 99); 6 Feb 2009 17:58:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 09:58:28 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.46.30] (HELO yw-out-2324.google.com) (74.125.46.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 17:58:17 +0000 Received: by yw-out-2324.google.com with SMTP id 2so47008ywt.5 for ; Fri, 06 Feb 2009 09:57:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.146.14 with SMTP id t14mr663123ybd.140.1233943073348; Fri, 06 Feb 2009 09:57:53 -0800 (PST) Date: Fri, 6 Feb 2009 12:57:53 -0500 Message-ID: <879778450902060957s4ca19452m2bb2b52f9c8776dc@mail.gmail.com> Subject: Re: Default response is text/plain From: Justin Sheehy To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Brian's patch is a decent try, but is not correct HTTP content-negotiation. I wrote a short note on this topic today for a different reason. http://blog.therestfulway.com/2009/02/content-negotiation-for-humans.html For anyone unfamiliar: webmachine RESTs atop mochiweb. I suggest that couchdb follow basically the same pattern. If you don't want to use webmachine directly, feel free to import the conneg code in http://code.google.com/p/webmachine/source/browse/trunk/src/webmachine_util.erl (choose_media_type/2) as it is Apache-2 licensed. -Justin