Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Won't Fix
-
1.2
-
New Contributors Level (Easy)
Description
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