couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r983051 - /couchdb/branches/1.0.x/src/couchdb/couch_httpd_db.erl
Date Fri, 06 Aug 2010 16:54:38 GMT
Author: rnewson
Date: Fri Aug  6 16:54:38 2010
New Revision: 983051

URL: http://svn.apache.org/viewvc?rev=983051&view=rev
Log:
add Etag header for standalone attachment PUT.

Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_httpd_db.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_httpd_db.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_httpd_db.erl?rev=983051&r1=983050&r2=983051&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_httpd_db.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_httpd_db.erl Fri Aug  6 16:54:38 2010
@@ -1025,7 +1025,8 @@ db_attachment_req(#httpd{method=Method,m
         'DELETE' ->
             {200, []};
         _ ->
-            {201, [{"Location", absolute_uri(Req, "/" ++
+            {201, [{"Etag", "\"" ++ ?b2l(couch_doc:rev_to_str(UpdatedRev)) ++ "\""},
+               {"Location", absolute_uri(Req, "/" ++
                 binary_to_list(DbName) ++ "/" ++
                 binary_to_list(DocId) ++ "/" ++
                 binary_to_list(FileName)



Mime
View raw message