Skip to content
Myr

Merge pull request #5894 from dbaxa/do-not-re-build-proxies-when-proxies-have-been-provided

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

Prevent unnecessary should_bypass_proxies checks in rebuild_proxies

authored by Nate Prewitt · committed by GitHub · parents b0829a8, 0d5347e · Browse files · 1 file+1 added−2 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−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:requests/utils.py+1 added-2 removed
849 unmodified lines
850 scheme = urlparse(url).scheme851 no_proxy = proxies.get('no_proxy')852 new_proxies = proxies.copy()853854 bypass_proxy = should_bypass_proxies(url, no_proxy=no_proxy)855 if trust_env and not bypass_proxy:854 if trust_env and not should_bypass_proxies(url, no_proxy=no_proxy):855 environ_proxies = get_environ_proxies(url, no_proxy=no_proxy)856857 proxy = environ_proxies.get(scheme, environ_proxies.get('all'))858
198 unmodified lines