[New-bugs-announce] [issue22095] Use of set_tunnel with default port results in incorrect post value in host header
report at bugs.python.org
Mon Jul 28 20:09:43 CEST 2014
New submission from Demian Brecht:
Creating this bug for clarity, but was encountered while investigating 22041 (now set as not a bug).
When using set_tunnel with default port, the port value in the host header is set to "None":
"send: b'POST [PATH] HTTP/1.1\r\nHost: [HOST]:None\r\nAccept-Encoding: identity\r\nContent-Length: 41\r\nAccept: text/plain\r\nContent-type: application/x-www-form-urlencoded\r\n\r\n[FORM_DATA]'"
This issue seems to have been introduced in 3.4 when _tunnel_host and _tunnel_port were introduced to decouple the destination host and port from the proxy host and port.
components: Library (Lib)
title: Use of set_tunnel with default port results in incorrect post value in host header
versions: Python 3.4, Python 3.5
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce