From aeceafa943681f506abf6fb6650207a47b0fd965 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Thu, 24 Dec 2009 00:51:34 +0000 Subject: [PATCH] Issue: 7291. 2.6 backport missed the headers argument. Fixed it. --- Lib/httplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/httplib.py b/Lib/httplib.py index 8629cc336b..e5ef8b7edc 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -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 -- 2.50.1