mirror of https://github.com/python/cpython.git
Idiotic braino caused HTTP openers to ignore proxies.
This fixes 413135
This commit is contained in:
parent
2bd0d88360
commit
7667680d70
|
@ -781,7 +781,7 @@ def encode_digest(digest):
|
|||
class AbstractHTTPHandler(BaseHandler):
|
||||
|
||||
def do_open(self, http_class, req):
|
||||
host = urlparse.urlparse(req.get_full_url())[1]
|
||||
host = req.get_host()
|
||||
if not host:
|
||||
raise URLError('no host given')
|
||||
|
||||
|
|
Loading…
Reference in New Issue