]> granicus.if.org Git - python/commitdiff
Make urllib use HTTP/1.1. It seems to work now, but hasn't been
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 31 Mar 2009 16:37:16 +0000 (16:37 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 31 Mar 2009 16:37:16 +0000 (16:37 +0000)
carefully tested.

Lib/urllib/request.py

index 3776536d387e1a5350e9090ac8f8f177878d8d4d..3e5b05c0cd570b873dbd42ae99ac6f369d9dabfc 100644 (file)
@@ -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