Skip to content
Myr

Allow spaces in the no_proxy environ variable.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent 09c52e7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/utils.py+1 added-1 removed
400 unmodified lines
401402 if no_proxy:403 # We need to check whether we match here. We need to see if we match404 # the end of the netloc, both with and without the port.405 no_proxy = no_proxy.split(',')405 no_proxy = no_proxy.replace(' ', '').split(',')406407 for host in no_proxy:408 if netloc.endswith(host) or netloc.split(':')[0].endswith(host):409 # The URL does match something in no_proxy, so we don't want
158 unmodified lines