diff options
Diffstat (limited to 'apps/chttpd/src/chttpd_misc.erl')
-rw-r--r-- | apps/chttpd/src/chttpd_misc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/chttpd/src/chttpd_misc.erl b/apps/chttpd/src/chttpd_misc.erl index 7e6a3a83..640e7d0d 100644 --- a/apps/chttpd/src/chttpd_misc.erl +++ b/apps/chttpd/src/chttpd_misc.erl @@ -104,7 +104,7 @@ handle_task_status_req(Req) -> send_method_not_allowed(Req, "GET,HEAD"). handle_replicate_req(#httpd{method='POST', user_ctx=Ctx} = Req) -> - PostBody = get(post_body), + PostBody = chttpd:json_body_obj(Req), try couch_rep:replicate(PostBody, Ctx) of {ok, {continuous, RepId}} -> send_json(Req, 202, {[{ok, true}, {<<"_local_id">>, RepId}]}); |