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 2010/09/10 03:25:03 UTC

svn commit: r995631 - /couchdb/trunk/src/couchdb/couch_rep_httpc.erl

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, _} ->