Idiotic braino caused HTTP openers to ignore proxies.

This fixes 413135
This commit is contained in:
Moshe Zadka 2001-04-11 07:44:53 +00:00
parent 2bd0d88360
commit 7667680d70
1 changed files with 1 additions and 1 deletions

View File

@ -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')