Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 586A161E0 for ; Fri, 8 Jul 2011 12:02:51 +0000 (UTC) Received: (qmail 19340 invoked by uid 500); 8 Jul 2011 12:02:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 19232 invoked by uid 500); 8 Jul 2011 12:02:48 -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 19224 invoked by uid 99); 8 Jul 2011 12:02:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 12:02:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 12:02:42 +0000 Received: by bwj24 with SMTP id 24so2456184bwj.11 for ; Fri, 08 Jul 2011 05:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=nDKWeDHvDdM7xE7OrAXpiPiFllo9WL1LRDTY5GkVHz8=; b=WS3PRmt7Qfgy9ibfZGjJguXLLu9t5ZHcH4s8ZS314MBGwn0oPDA6ZQO8TGqAfwTPHT Jfy5U3B8Iy3Cq5YtzzPT6/mLCeTG15gPc2OxuqC0iCjELeLMXjHh0AswmpTauPYdE99/ tPgeXLTo9rqbwROFDJz0forC4IKCdzFrLa8eo= MIME-Version: 1.0 Received: by 10.204.157.13 with SMTP id z13mr323046bkw.309.1310126541346; Fri, 08 Jul 2011 05:02:21 -0700 (PDT) Received: by 10.204.15.72 with HTTP; Fri, 8 Jul 2011 05:02:21 -0700 (PDT) In-Reply-To: <1745739245.10821.1310120836534.JavaMail.tomcat@hel.zones.apache.org> References: <1743068035.35683.1306146887384.JavaMail.tomcat@hel.zones.apache.org> <1745739245.10821.1310120836534.JavaMail.tomcat@hel.zones.apache.org> Date: Fri, 8 Jul 2011 14:02:21 +0200 Message-ID: Subject: Re: [jira] [Created] (COUCHDB-1175) Improve content type negotiation for couchdb JSON responses From: Benoit Chesneau To: "dev@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org mmm no the change i made do what nslater describe. On Friday, July 8, 2011, Robert Newson (JIRA) wrote: > > =A0 =A0[ https://issues.apache.org/jira/browse/COUCHDB-1175?page=3Dcom.a= tlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentI= d=3D13061883#comment-13061883 ] > > Robert Newson commented on COUCHDB-1175: > ---------------------------------------- > > that flips the behavior back to 1.0.x style. It was flipped in 1.1.x to a= ddress an issue with jquery (iirc). Benoit made the change, he should chip = in with a better explanation. > > >> Improve content type negotiation for couchdb JSON responses >> ----------------------------------------------------------- >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: COUCHDB-1175 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jira/brow= se/COUCHDB-1175 >> =A0 =A0 =A0 =A0 =A0 =A0 Project: CouchDB >> =A0 =A0 =A0 =A0 =A0Issue Type: Improvement >> =A0 =A0Affects Versions: 1.0.2 >> =A0 =A0 =A0 =A0 =A0 =A0Reporter: Robert Newson >> =A0 =A0 =A0 =A0 =A0 =A0Assignee: Robert Newson >> =A0 =A0 =A0 =A0 =A0 =A0Priority: Blocker >> =A0 =A0 =A0 =A0 =A0 =A0 Fix For: 1.1.1, 1.2 >> >> >> Currently we ignore qvalues when negotiation between 'application/json' = and 'text/plain' when returning JSON responses. >> Specifically, we test directly for 'application/json' or 'text/plain' in= the Accept header. Different branches have different bugs, though. Trunk r= eturns 'application/json' if 'application/json' is present at all, even if = it's less preferred than 'text/plain' when qvalues are accounted for. >> We should follow the standard. > > -- > This message is automatically generated by JIRA. > For more information on JIRA, see: http://www.atlassian.com/software/jira > > >