Skip to content

Commit

Permalink
add Etag header for standalone attachment PUT.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@983051 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rnewson committed Aug 6, 2010
1 parent de55050 commit d67957c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/couchdb/couch_httpd_db.erl
Expand Up @@ -1025,7 +1025,8 @@ db_attachment_req(#httpd{method=Method,mochi_req=MochiReq}=Req, Db, DocId, FileN
'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)
Expand Down

0 comments on commit d67957c

Please sign in to comment.