summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_misc_handlers.erl
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-05-10 19:20:23 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-05-10 19:20:23 +0000
commit9fe71aa326782f9dc1dc04914cd57e3b12d48af7 (patch)
treeafce14f5321a729b64d4d3c778285b5b637afff0 /src/couchdb/couch_httpd_misc_handlers.erl
parent2c8bc8ed6a2dc4ecdde08e779e4882f189485271 (diff)
refactor JSON body error handling, also consolidate update_docs JSON response generation.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773387 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_misc_handlers.erl')
-rw-r--r--src/couchdb/couch_httpd_misc_handlers.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_misc_handlers.erl b/src/couchdb/couch_httpd_misc_handlers.erl
index fa42e9c3..d03cbd3f 100644
--- a/src/couchdb/couch_httpd_misc_handlers.erl
+++ b/src/couchdb/couch_httpd_misc_handlers.erl
@@ -91,7 +91,7 @@ get_rep_endpoint(#httpd{user_ctx=UserCtx}, <<DbName/binary>>) ->
{local, DbName, UserCtx}.
handle_replicate_req(#httpd{method='POST'}=Req) ->
- {Props} = couch_httpd:json_body(Req),
+ {Props} = couch_httpd:json_body_obj(Req),
Source = get_rep_endpoint(Req, proplists:get_value(<<"source">>, Props)),
Target = get_rep_endpoint(Req, proplists:get_value(<<"target">>, Props)),
case couch_rep:replicate(Source, Target) of