You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Randall Leeds (Assigned) (JIRA)" <ji...@apache.org> on 2011/09/28 23:58:45 UTC

[jira] [Assigned] (COUCHDB-1298) X-Couch-Update-NewRev and "ETag" and Content-Type

     [ https://issues.apache.org/jira/browse/COUCHDB-1298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Leeds reassigned COUCHDB-1298:
--------------------------------------

    Assignee: Randall Leeds
    
> 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: Database Core
>    Affects Versions: 1.2
>            Reporter: gert cuykens
>            Assignee: Randall Leeds
>            Priority: Trivial
>              Labels: couchdb
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> There are two inconsistencies 
> 1) The use of ETag vs X-Couch-Update-NewRev
> 2) The use of "..." around the rev number
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira