Skip to content
Myr

Merge pull request #638 from mher/develop

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

no_proxy support

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 400b456, cb8f975 · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/models.py+2 added-1 removed
515 unmodified lines
516 if (content_type) and (not 'content-type' in self.headers):517 self.headers['Content-Type'] = content_type518519 _p = urlparse(url)520 no_proxy = filter(lambda x:x.strip(), self.proxies.get('no', '').split(','))521 proxy = self.proxies.get(_p.scheme)522522 if proxy:523 if proxy and not any(map(_p.netloc.endswith, no_proxy)):524 conn = poolmanager.proxy_from_url(proxy)525 _proxy = urlparse(proxy)526 if '@' in _proxy.netloc:527 auth, url = _proxy.netloc.split('@', 1)
305 unmodified lines