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 EF54B1082D for ; Mon, 1 Jul 2013 11:34:23 +0000 (UTC) Received: (qmail 85846 invoked by uid 500); 1 Jul 2013 11:34:22 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 85432 invoked by uid 500); 1 Jul 2013 11:34:21 -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 85415 invoked by uid 99); 1 Jul 2013 11:34:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jul 2013 11:34:21 +0000 Date: Mon, 1 Jul 2013 11:34:21 +0000 (UTC) From: "Alexander Shorin (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COUCHDB-1298) X-Couch-Update-NewRev and "ETag" and Content-Type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Shorin updated COUCHDB-1298: -------------------------------------- Fix Version/s: 2.0.0 > X-Couch-Update-NewRev and "ETag" and Content-Type > ------------------------------------------------- > > Key: COUCHDB-1298 > URL: https://issues.apache.org/jira/browse/COUCHDB-1298 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Affects Versions: 1.2 > Reporter: gert cuykens > Assignee: Randall Leeds > Priority: Trivial > Labels: couchdb > Fix For: 2.0.0 > > Original Estimate: 1h > Remaining Estimate: 1h > > There are three inconsistencies > 1) The use of ETag vs X-Couch-Update-NewRev > 2) The use of "..." around the rev number > 3) Content-Type: is different, see the space between ;...charset > PUT /users/_design/user/_update/form/gert HTTP/1.1 > Host: 127.0.0.1:5984 > HTTP/1.1 201 Created > X-Couch-Update-NewRev: 245-2ddebfc32429bc723cb20543a97d3598 > Server: CouchDB/1.3.0a-f07c75f-git (Erlang OTP/R13B03) > Date: Wed, 28 Sep 2011 15:49:49 GMT > Content-Type: text/html; charset=utf-8 > Content-Length: 8 > PUT /users/gert/picture.png HTTP/1.1 > Host: 127.0.0.1:5984 > HTTP/1.1 201 Created > Server: CouchDB/1.3.0a-f07c75f-git (Erlang OTP/R13B03) > Location: http://127.0.0.1:5984/users/gert/picture.png > ETag: "246-f1291707f1827ef38217972ea1f3824c" > Date: Wed, 28 Sep 2011 15:50:25 GMT > Content-Type: text/plain;charset=utf-8 > Content-Length: 69 > Cache-Control: must-revalidate > Pleas always use ETag without "..." > When a new document is been created, also use ETag because its already indicated by status 201, no need for special headers. > Also note Content-Type: is different, see the space between ;...charset -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira