couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r643197 - /incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
Date Mon, 31 Mar 2008 22:56:00 GMT
Author: cmlenz
Date: Mon Mar 31 15:55:48 2008
New Revision: 643197

URL: http://svn.apache.org/viewvc?rev=643197&view=rev
Log:
mochiweb branch: fix for replication response.

Modified:
    incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl

Modified: incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl?rev=643197&r1=643196&r2=643197&view=diff
==============================================================================
--- incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl (original)
+++ incubator/couchdb/branches/mochiweb/src/couchdb/couch_httpd.erl Mon Mar 31 15:55:48 2008
@@ -114,8 +114,8 @@
     Source = proplists:get_value("source", Props),
     Target = proplists:get_value("target", Props),
     {obj, Options} = proplists:get_value("options", Props, {obj, []}),
-    {ok, JsonResults} = couch_rep:replicate(Source, Target, Options),
-    send_json(Req, JsonResults);
+    {ok, {obj, JsonResults}} = couch_rep:replicate(Source, Target, Options),
+    send_json(Req, {obj, [{ok, true} | JsonResults]});
 
 handle_replicate_request(_Req, _Method) ->
     throw({method_not_allowed, "POST"}).



Mime
View raw message