From ce44c0efd3a79843e5504c32c1147bd2c64d0331 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Fri, 10 Sep 2010 01:26:01 +0000 Subject: Merged revision 995631 from trunk: Bug fix: replicator proxy option ignored. Thanks James Jackson for finding and reporting the bug. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@995632 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep_httpc.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_rep_httpc.erl b/src/couchdb/couch_rep_httpc.erl index ff25e4d5..886babd1 100644 --- a/src/couchdb/couch_rep_httpc.erl +++ b/src/couchdb/couch_rep_httpc.erl @@ -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, _} -> -- cgit v1.2.3