From: Jeremy Hylton Date: Tue, 31 Mar 2009 16:37:16 +0000 (+0000) Subject: Make urllib use HTTP/1.1. It seems to work now, but hasn't been X-Git-Tag: v3.1a2~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bdb576e7072a7e6f066d6423201ee3fa7db0b30;p=python Make urllib use HTTP/1.1. It seems to work now, but hasn't been carefully tested. --- diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index 3776536d38..3e5b05c0cd 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1562,10 +1562,6 @@ class URLopener: 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