You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/08/02 21:30:26 UTC
svn commit: r1153250 - /couchdb/trunk/src/couchdb/couch_httpd_replicator.erl
Author: fdmanana
Date: Tue Aug 2 19:30:25 2011
New Revision: 1153250
URL: http://svn.apache.org/viewvc?rev=1153250&view=rev
Log:
Return HTTP code 202 for continuous replications
This was the behaviour of the previous replicator's
implementation. Issue identified by Dale Harvey.
Modified:
couchdb/trunk/src/couchdb/couch_httpd_replicator.erl
Modified: couchdb/trunk/src/couchdb/couch_httpd_replicator.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_replicator.erl?rev=1153250&r1=1153249&r2=1153250&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_replicator.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_replicator.erl Tue Aug 2 19:30:25 2011
@@ -44,7 +44,7 @@ handle_req(#httpd{method = 'POST', user_
{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;