]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue: 7291. 2.6 backport missed the headers argument. Fixed it.
authorSenthil Kumaran <orsenthil@gmail.com>
Thu, 24 Dec 2009 00:51:34 +0000 (00:51 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Thu, 24 Dec 2009 00:51:34 +0000 (00:51 +0000)
Lib/httplib.py

index 8629cc336bb2a5e8820a1185ec0f2487e8c34355..e5ef8b7edc67d0f7e3dca41320987d20b04f4f23 100644 (file)
@@ -658,7 +658,7 @@ class HTTPConnection:
         if strict is not None:
             self.strict = strict
 
-    def _set_tunnel(self, host, port=None):
+    def _set_tunnel(self, host, port=None, headers=None):
         """ Sets up the host and the port for the HTTP CONNECT Tunnelling.
 
         The headers argument should be a mapping of extra HTTP headers