Merge pull request #2732 from mano3m/develop_fixhost

Store username and pass in cleanhost
This commit is contained in:
Ruud Burger
2014-01-18 10:52:02 -08:00

View File

@@ -129,7 +129,7 @@ def cleanHost(host, protocol = True, ssl = False, username = None, password = No
if protocol and username and password:
login = '%s:%s@' % (username, password)
if not login in host:
host.replace('://', '://' + login, 1)
host = host.replace('://', '://' + login, 1)
host = host.rstrip('/ ')
if protocol: