This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author demian.brecht
Recipients demian.brecht
Date 2014-07-28.18:09:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406570983.98.0.143155526303.issue22095@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-28 18:09:44demian.brechtsetrecipients: + demian.brecht
2014-07-28 18:09:43demian.brechtsetmessageid: <1406570983.98.0.143155526303.issue22095@psf.upfronthosting.co.za>
2014-07-28 18:09:43demian.brechtlinkissue22095 messages
2014-07-28 18:09:43demian.brechtcreate