diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-09-10 01:25:03 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-09-10 01:25:03 +0000 |
commit | a40c638adf239dea27d77384a363cfc27fccc753 (patch) | |
tree | f21bd6237dcb628a95b36565808345707c954211 /src/couchdb/couch_rep_httpc.erl | |
parent | 905d6bc13a034a59e7a2c2d8df5975271500da0f (diff) |
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/trunk@995631 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep_httpc.erl')
-rw-r--r-- | src/couchdb/couch_rep_httpc.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/couchdb/couch_rep_httpc.erl b/src/couchdb/couch_rep_httpc.erl index a751f6b2..a47c26a3 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, _} -> |