Skip to content
Myr

Don't get hung up on ports in proxies.

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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
554 unmodified lines
555 _p = urlparse(url)556 no_proxy = filter(lambda x:x.strip(), self.proxies.get('no', '').split(','))557 proxy = self.proxies.get(_p.scheme)558559 if proxy and not any(map(_p.netloc.endswith, no_proxy)):559 if proxy and not any(map(_p.hostname.endswith, no_proxy)):560 conn = poolmanager.proxy_from_url(proxy)561 _proxy = urlparse(proxy)562 if '@' in _proxy.netloc:563 auth, url = _proxy.netloc.split('@', 1)
322 unmodified lines