[issue34516] httplib sets unbefitting "Host" in request header when requests an ipv6 format url.

Karthikeyan Singaravelan report at bugs.python.org
Tue Aug 28 04:15:15 EDT 2018


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

urrlib3 seems to handle this case at https://github.com/urllib3/urllib3/blob/c41fa8c7ed8cb7315195dc15e67958754ea276d5/src/urllib3/util/url.py#L184 . 

Test cases : https://github.com/urllib3/urllib3/blob/0f85e05af9ef2ded671a7b47506dfd24b32decf0/test/test_util.py#L80

Thanks

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34516>
_______________________________________


More information about the Python-bugs-list mailing list