couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1030406 - /couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl
Date Wed, 03 Nov 2010 10:58:49 GMT
Author: fdmanana
Date: Wed Nov  3 10:58:48 2010
New Revision: 1030406

URL: http://svn.apache.org/viewvc?rev=1030406&view=rev
Log:
Merged revision 1030405 from trunk:

Replicator fix: add Content-Length header to the request that creates the remote DB.
Closes COUCHDB-932.
Patch by Dale Harvey. Thanks.


Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl?rev=1030406&r1=1030405&r2=1030406&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_rep_httpc.erl Wed Nov  3 10:58:48 2010
@@ -85,7 +85,8 @@ db_exists(Req, CanonicalUrl, CreateDB) -
     end,
     case CreateDB of
         true ->
-            catch ibrowse:send_req(Url, HeadersFun(put), put, [], Options);
+            Headers = [{"Content-Length", 0} | HeadersFun(put)],
+            catch ibrowse:send_req(Url, Headers, put, [], Options);
         _Else -> ok
     end,
     case catch ibrowse:send_req(Url, HeadersFun(head), head, [], Options) of



Mime
View raw message