Skip to content
Myr

Fixed proxy requests to pool connections.

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

authored by László Vaskó · committed by Vaskó László · parent f038f68 · 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
9 unmodified lines
1011import socket1213from .models import Response14from .packages.urllib3.poolmanager import PoolManager, proxy_from_url14from .packages.urllib3.poolmanager import PoolManager, ProxyManager15from .packages.urllib3.response import HTTPResponse16from .hooks import dispatch_hook17from .compat import urlparse, basestring, urldefrag18from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,
100 unmodified lines
119 proxy = proxies.get(urlparse(url).scheme)120121 if proxy:122 proxy = prepend_scheme_if_needed(proxy, urlparse(url).scheme)123 conn = proxy_from_url(proxy)123 conn = ProxyManager(self.poolmanager.connection_from_url(proxy))124 else:125 conn = self.poolmanager.connection_from_url(url)126127 return conn
97 unmodified lines