Skip to content
Myr

Don't parse nonexistent URLs.

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 39ee5d4 · 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/adapters.py+2 added-1 removed
300 unmodified lines
301 :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs.302 """303 proxy = select_proxy(request.url, proxies)304 scheme = urlparse(request.url).scheme305 if proxy:305 proxy_scheme = urlparse(proxy).scheme306 proxy_scheme = urlparse(proxy).scheme307308 if proxy and proxy_scheme.lower().startswith('socks'):309 # Socks proxies behave like the proxy isn't there at all.310 url = request.path_url
167 unmodified lines