diff options
author | Benoit Chesneau <benoitc@apache.org> | 2010-03-28 09:18:08 +0000 |
---|---|---|
committer | Benoit Chesneau <benoitc@apache.org> | 2010-03-28 09:18:08 +0000 |
commit | 41680a4491aa018660a990997925b7a9ad3c82e4 (patch) | |
tree | 91f19e2a758ee5835a5e3d37b0d93384f4d1a491 /src/couchdb | |
parent | ef7ab7e4e414d53fe5c12993d29b193ed3cdfd42 (diff) |
typo.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@928364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_httpd_show.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd_show.erl b/src/couchdb/couch_httpd_show.erl index c0bb21e7..a472c97a 100644 --- a/src/couchdb/couch_httpd_show.erl +++ b/src/couchdb/couch_httpd_show.erl @@ -138,9 +138,9 @@ send_doc_update_response(Req, Db, DDoc, UpdateName, Doc, DocId) -> NewDoc = couch_doc:from_json_obj({NewJsonDoc}), {ok, NewRev} = couch_db:update_doc(Db, NewDoc, Options), NewRevStr = couch_doc:rev_to_str(NewRev), - JsonRespWithResv = {[{<<"headers">>, + JsonRespWithRev = {[{<<"headers">>, {[{<<"X-Couch-Update-NewRev">>, NewRevStr}]}} | JsonResp]}, - {201, JsonRespWithResv}; + {201, JsonRespWithRev}; [<<"up">>, _Other, JsonResp] -> {200, JsonResp} end, |