couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r995631 - /couchdb/trunk/src/couchdb/couch_rep_httpc.erl
Date Fri, 10 Sep 2010 01:25:03 GMT
Author: fdmanana
Date: Fri Sep 10 01:25:03 2010
New Revision: 995631

URL: http://svn.apache.org/viewvc?rev=995631&view=rev
Log:
Bug fix: replicator proxy option ignored.

Thanks James Jackson for finding and reporting the bug.

Modified:
    couchdb/trunk/src/couchdb/couch_rep_httpc.erl

Modified: couchdb/trunk/src/couchdb/couch_rep_httpc.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep_httpc.erl?rev=995631&r1=995630&r2=995631&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep_httpc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep_httpc.erl Fri Sep 10 01:25:03 2010
@@ -72,6 +72,7 @@ db_exists(Req, CanonicalUrl, CreateDB) -
     #http_db{
         auth = Auth,
         headers = Headers0,
+        options = Options,
         url = Url
     } = Req,
     HeadersFun = fun(Method) ->
@@ -84,10 +85,10 @@ db_exists(Req, CanonicalUrl, CreateDB) -
     end,
     case CreateDB of
         true ->
-            catch ibrowse:send_req(Url, HeadersFun(put), put);
+            catch ibrowse:send_req(Url, HeadersFun(put), put, [], Options);
         _Else -> ok
     end,
-    case catch ibrowse:send_req(Url, HeadersFun(head), head) of
+    case catch ibrowse:send_req(Url, HeadersFun(head), head, [], Options) of
     {ok, "200", _, _} ->
         Req#http_db{url = CanonicalUrl};
     {ok, "301", RespHeaders, _} ->



Mime
View raw message