Skip to content
Snippets Groups Projects
Commit 37286589 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Stefan] handle user/password from HTTP_PROXY environment variable. Fixes #5691

parent 292a78ab
No related branches found
No related tags found
No related merge requests found
...@@ -990,9 +990,10 @@ class Connection(CommonConnection, ConnectionHandlers): ...@@ -990,9 +990,10 @@ class Connection(CommonConnection, ConnectionHandlers):
proxy['port'] = 3128 proxy['port'] = 3128
if len(login) == 2: if len(login) == 2:
proxy['password'] = login[1] proxy['pass'] = login[1]
proxy['useauth'] = True
else: else:
proxy['password'] = u'' proxy['pass'] = u''
except Exception: except Exception:
proxy = None proxy = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment