[issue22095] Use of set_tunnel with default port results in incorrect post value in host header
Serhiy Storchaka
report at bugs.python.org
Tue Nov 18 09:49:04 CET 2014
Serhiy Storchaka added the comment:
If call _get_hostport() in set_tunnel() then it should be removed in _tunnel().
As for tests, it would be better do not rely on implementation details. Instead you can monkey-patch the send() method of of HTTPConnection instance and check passed argument.
----------
nosy: +nikratio, orsenthil, serhiy.storchaka
stage: -> patch review
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22095>
_______________________________________
More information about the Python-bugs-list
mailing list