Permalink
Browse files

Return HTTP code 202 on continuous replication request

This was the behaviour of the old replicator (which should be
preserved).

Change-Id: I51b188cefdf2fc73e98f99acf99f9dd488caafaf
Reviewed-on: http://review.couchbase.org/8596
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
  • Loading branch information...
1 parent eef1711 commit 528c63433b0b64c0beca3b27030946f6e31e140a @fdmanana fdmanana committed with fdmanana Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/couchdb/couch_httpd_replicator.erl
@@ -44,7 +44,7 @@ handle_req(#httpd{method = 'POST', user_ctx = UserCtx} = Req) ->
{ok, {cancelled, RepId}} ->
send_json(Req, 200, {[{ok, true}, {<<"_local_id">>, RepId}]});
{ok, {continuous, RepId}} ->
- send_json(Req, 200, {[{ok, true}, {<<"_local_id">>, RepId}]});
+ send_json(Req, 202, {[{ok, true}, {<<"_local_id">>, RepId}]});
{ok, {HistoryResults}} ->
send_json(Req, {[{ok, true} | HistoryResults]})
end;

0 comments on commit 528c634

Please sign in to comment.