summaryrefslogtreecommitdiff
path: root/apps/chttpd/src/chttpd_misc.erl
diff options
context:
space:
mode:
authorRobert Dionne <bitdiddle@shadow.local>2010-09-27 22:20:09 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-10-01 22:47:31 -0400
commitca38a7a580cca8ede9f8f1db4eb447ef0994d6b3 (patch)
treed8d54f9a5bb07dd5a887691268c1675759c440aa /apps/chttpd/src/chttpd_misc.erl
parentab5b2301dc713640170a7026c5ab1870a9ce4a5b (diff)
minor tweak from Adam to fix replication, change method spec to correct method for view_cleanup
Diffstat (limited to 'apps/chttpd/src/chttpd_misc.erl')
-rw-r--r--apps/chttpd/src/chttpd_misc.erl2
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}]});