diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-06-16 21:14:06 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-06-16 21:14:06 +0000 |
commit | db16441b58fa57c14b5b814ba62d042455e6afd1 (patch) | |
tree | 42a84be481d6085c57867ff111b29d3a11db3f7c /src | |
parent | 78017574afd5796316a9f68cfc7f369e125fa36c (diff) |
provide a uuid to update functions (and all other functions) that they can use to create new docs. closes COUCHDB-802. Thanks Jason Smith, Zachary Zolton, and Dmitry Unkovsky.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_httpd_external.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_external.erl b/src/couchdb/couch_httpd_external.erl index 2ef2be35..07202934 100644 --- a/src/couchdb/couch_httpd_external.erl +++ b/src/couchdb/couch_httpd_external.erl @@ -75,6 +75,7 @@ json_req_obj(#httpd{mochi_req=Req, % add headers... {[{<<"info">>, {Info}}, {<<"id">>, DocId}, + {<<"uuid">>, couch_uuids:new()}, {<<"method">>, Method}, {<<"path">>, Path}, {<<"query">>, json_query_keys(to_json_terms(Req:parse_qs()))}, |