Skip to content
Myr

fix for #1017

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 27c6dc3 · Browse files · 1 file+2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/adapters.py+2 added-2 removed
11 unmodified lines
12import socket1314from .models import Response15from .auth import HTTPProxyAuth16from .packages.urllib3.poolmanager import PoolManager16from .packages.urllib3.poolmanager import PoolManager, ProxyManager17from .hooks import dispatch_hook18from .compat import urlparse19from .utils import DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers20from .structures import CaseInsensitiveDict
97 unmodified lines
118 proxies = proxies or {}119 proxy = proxies.get(urlparse(url).scheme)120121 if proxy:122 conn = self.poolmanager.ProxyManager(self.poolmanager.proxy_from_url(proxy))122 conn = ProxyManager(self.poolmanager.proxy_from_url(proxy))123 else:124 conn = self.poolmanager.connection_from_url(url)125126 return conn
52 unmodified lines