couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] branch 63012-scheduler updated: [fixup] Strip password from connection pool requests
Date Fri, 07 Apr 2017 21:55:03 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git

The following commit(s) were added to refs/heads/63012-scheduler by this push:
       new  4b85515   [fixup] Strip password from connection pool requests
4b85515 is described below

commit 4b8551597e041f520308c85402da13c262bca64a
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Fri Apr 7 17:54:57 2017 -0400

    [fixup] Strip password from connection pool requests
---
 src/couch_replicator/src/couch_replicator_connection.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/couch_replicator/src/couch_replicator_connection.erl b/src/couch_replicator/src/couch_replicator_connection.erl
index e580663..61dcff3 100644
--- a/src/couch_replicator/src/couch_replicator_connection.erl
+++ b/src/couch_replicator/src/couch_replicator_connection.erl
@@ -58,7 +58,8 @@ init([]) ->
 acquire(URL) when is_binary(URL) ->
     acquire(binary_to_list(URL));
 
-acquire(URL) ->
+acquire(URL0) ->
+    URL = couch_util:url_strip_password(URL0),
     case gen_server:call(?MODULE, {acquire, URL}) of
         {ok, Worker} ->
             link(Worker),

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message