Skip to content
Myr

Merge pull request #779 from Lukasa/develop

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

Make sure proxy exclusions work properly.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 9549391, 00b4ca3 · 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
534 unmodified lines
535 _p = urlparse(url)536 no_proxy = filter(lambda x: x.strip(), self.proxies.get('no', '').split(','))537 proxy = self.proxies.get(_p.scheme)538539 if proxy and not any(map(_p.netloc.endswith, no_proxy)):539 if proxy and not any(map(_p.hostname.endswith, no_proxy)):540 conn = poolmanager.proxy_from_url(proxy)541 _proxy = urlparse(proxy)542 if '@' in _proxy.netloc:543 auth, url = _proxy.netloc.split('@', 1)
322 unmodified lines