projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
780ce39
)
Default proxy scheme to http.
author
schlamar
<marc.schlaich@gmail.com>
Tue, 18 Feb 2014 14:24:24 +0000
(15:24 +0100)
committer
schlamar
<marc.schlaich@gmail.com>
Tue, 18 Feb 2014 14:24:24 +0000
(15:24 +0100)
requests/adapters.py
patch
|
blob
|
history
diff --git
a/requests/adapters.py
b/requests/adapters.py
index d51a5fe323c3ac9083f52a6193e74076dad21aed..e4d5e7dd92182ce337466dd07054e2901004da7a 100644
(file)
--- a/
requests/adapters.py
+++ b/
requests/adapters.py
@@
-203,7
+203,7
@@
class HTTPAdapter(BaseAdapter):
proxy = proxies.get(urlparse(url.lower()).scheme)
if proxy:
- proxy = prepend_scheme_if_needed(proxy,
urlparse(url.lower()).scheme
)
+ proxy = prepend_scheme_if_needed(proxy,
'http'
)
proxy_headers = self.proxy_headers(proxy)
if not proxy in self.proxy_manager: