diff options
| author | Cory Benfield <lukasaoz@gmail.com> | 2013-08-23 12:37:03 +0100 |
|---|---|---|
| committer | Cory Benfield <lukasaoz@gmail.com> | 2013-08-23 12:37:03 +0100 |
| commit | f040b2aa5d5e278ce8a474a7dac3cf5533b36071 (patch) | |
| tree | 835ca03c18ae9a3841bd0ab57041a8c073b8e015 /requests/utils.py | |
| parent | 09c52e7282f53f7d38cc2ab268043ff232960448 (diff) | |
| download | python-requests-f040b2aa5d5e278ce8a474a7dac3cf5533b36071.tar.gz | |
Allow spaces in the no_proxy environ variable.
Diffstat (limited to 'requests/utils.py')
| -rw-r--r-- | requests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requests/utils.py b/requests/utils.py index 00da2669..450b2bd3 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -402,7 +402,7 @@ def get_environ_proxies(url): if no_proxy: # We need to check whether we match here. We need to see if we match # the end of the netloc, both with and without the port. - no_proxy = no_proxy.split(',') + no_proxy = no_proxy.replace(' ', '').split(',') for host in no_proxy: if netloc.endswith(host) or netloc.split(':')[0].endswith(host): |
