mirror of
https://github.com/python/cpython.git
synced 2025-08-15 06:10:47 +00:00
Issue: 7291. 2.6 backport missed the headers argument. Fixed it.
This commit is contained in:
parent
21c134d0e3
commit
aeceafa943
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue