diff --git a/lib/core/option.py b/lib/core/option.py index 0af99b6fef8..7dc79e8f0d1 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1375,6 +1375,8 @@ def _setHTTPHandlers(): if conf.proxyCred: # Reference: http://stackoverflow.com/questions/34079/how-to-specify-an-authenticated-proxy-for-a-python-http-connection proxyString = "%s@" % conf.proxyCred + elif username is not None: + proxyString = "%s:%s@" % (username, password) else: proxyString = ""