mirror of
https://github.com/python/cpython
synced 2024-10-16 20:53:42 +00:00
Make urllib use HTTP/1.1. It seems to work now, but hasn't been
carefully tested.
This commit is contained in:
parent
21151760d9
commit
2bdb576e70
|
@ -1562,10 +1562,6 @@ def _open_generic_http(self, connection_factory, url, data):
|
|||
else:
|
||||
auth = None
|
||||
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 = {}
|
||||
if proxy_auth:
|
||||
headers["Proxy-Authorization"] = "Basic %s" % proxy_auth
|
||||
|
|
Loading…
Reference in a new issue