Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Oops
  • Loading branch information
handlerbot authored Oct 26, 2022
commit d224052c52819852d1da81b542aa8a3338ee10bf
2 changes: 1 addition & 1 deletion Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ def set_tunnel(self, host, port=None, headers=None):
else:
self._tunnel_headers.clear()

if not any(header.lower() == "host" for header in _tunnel_headers):
if not any(header.lower() == "host" for header in self._tunnel_headers):
encoded_host = self._tunnel_host.encode("idna").decode("ascii")
self._tunnel_headers["Host"] = "%s:%d" % (
encoded_host, self._tunnel_port)
Expand Down