You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/04/07 21:55:03 UTC

[couchdb] branch 63012-scheduler updated: [fixup] Strip password from connection pool requests

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 <va...@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" <co...@couchdb.apache.org>'].