Store username and pass in cleanhost

Fixes #2727
This commit is contained in:
mano3m
2014-01-18 12:39:59 +01:00
parent 161e3086fa
commit 6388d97c5c

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: