Commit 2bdb576e authored by Jeremy Hylton's avatar Jeremy Hylton

Make urllib use HTTP/1.1. It seems to work now, but hasn't been

carefully tested.
parent 21151760
...@@ -1562,10 +1562,6 @@ class URLopener: ...@@ -1562,10 +1562,6 @@ class URLopener:
else: else:
auth = None auth = None
http_conn = connection_factory(host) http_conn = connection_factory(host)
## # XXX We should fix urllib so that it works with HTTP/1.1.
## http_conn._http_vsn = 10
## http_conn._http_vsn_str = "HTTP/1.0"
headers = {} headers = {}
if proxy_auth: if proxy_auth:
headers["Proxy-Authorization"] = "Basic %s" % proxy_auth headers["Proxy-Authorization"] = "Basic %s" % proxy_auth
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment