Use the lowercase http_proxy environment variable
The 'correct' way is to have it lowercase, though there is a lot of confusion around it.
This commit is contained in:
parent
9afb301ebe
commit
39bfdade27
1 changed files with 2 additions and 0 deletions
|
|
@ -185,6 +185,8 @@ class BaseBackend(object):
|
|||
|
||||
if '_proxy' in self._private_config:
|
||||
kwargs['proxy'] = self._private_config['_proxy']
|
||||
elif 'http_proxy' in os.environ:
|
||||
kwargs['proxy'] = os.environ['http_proxy']
|
||||
elif 'HTTP_PROXY' in os.environ:
|
||||
kwargs['proxy'] = os.environ['HTTP_PROXY']
|
||||
kwargs['logger'] = self.logger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue