projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c52e7
)
Allow spaces in the no_proxy environ variable.
author
Cory Benfield
<lukasaoz@gmail.com>
Fri, 23 Aug 2013 11:37:03 +0000
(12:37 +0100)
committer
Cory Benfield
<lukasaoz@gmail.com>
Fri, 23 Aug 2013 11:37:03 +0000
(12:37 +0100)
requests/utils.py
patch
|
blob
|
history
diff --git
a/requests/utils.py
b/requests/utils.py
index
00da266
..
450b2bd
100644
(file)
--- 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):