Skip to content
Myr

Default proxy scheme to http.

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

authored by schlamar · committed by schlamar · parent 780ce39 · 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/adapters.py+1 added-1 removed
201 unmodified lines
202 proxies = proxies or {}203 proxy = proxies.get(urlparse(url.lower()).scheme)204205 if proxy:206 proxy = prepend_scheme_if_needed(proxy, urlparse(url.lower()).scheme)206 proxy = prepend_scheme_if_needed(proxy, 'http')207 proxy_headers = self.proxy_headers(proxy)208209 if not proxy in self.proxy_manager:210 self.proxy_manager[proxy] = proxy_from_url(
186 unmodified lines