Skip to content
Myr

Style changes thanks to @sigmavirus24.

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 724038e · Browse files · 1 file+7 added−8 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+7 added−8 removed

  • other:+7 added−8 removed

1 file+7 added−8 removed

modified:requests/sessions.py+7 added-8 removed
219 unmodified lines
220 if not should_bypass_proxies(url):221 environ_proxies = get_environ_proxies(url)222 scheme = urlparse(url).scheme223224 try:224 proxy = environ_proxies.get(scheme)225226 if proxy:227 new_proxies.setdefault(scheme, environ_proxies[scheme])226 except KeyError:227 pass228229 if 'Proxy-Authorization' in headers:230 del headers['Proxy-Authorization']231232 try:233 username, password = get_auth_from_url(new_proxies[scheme])234 if username and password:235 headers['Proxy-Authorization'] = _basic_auth_str(236 username, password237 )234 except KeyError:239 pass235 username, password = None, None236237 if username and password:238 headers['Proxy-Authorization'] = _basic_auth_str(username, password)239240 return new_proxies241242243class Session(SessionRedirectMixin):
384 unmodified lines