Skip to content
Myr

Don't repopulate proxies if we don't trust the env.

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 dae4026 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/sessions.py+3 added-3 removed
216 unmodified lines
217 necessary.218 """219 headers = prepared_request.headers220 url = prepared_request.url221 new_proxies = {}221 scheme = urlparse(url).scheme222 new_proxies = proxies.copy() if proxies is not None else {}223223 if not should_bypass_proxies(url):224 if self.trust_env and not should_bypass_proxies(url):225 environ_proxies = get_environ_proxies(url)225 scheme = urlparse(url).scheme226227 proxy = environ_proxies.get(scheme)228229 if proxy:
401 unmodified lines