Martin Panter <vadmium...@gmail.com> added the comment:

This sounds like a duplicate of Issue 28539. My understanding of that report is 
that Urllib3 half parses the URL by splitting out the port number, but returns 
a hostname with square brackets intact. Requests then passes the hostname 
(string with brackets) and port number (integer) to Python’s HTTPConnection 
constructor.

I think this is a bug in how Requests or “urllib3” is using Python’s 
HTTPConnection class. Requests should either leave the port number with the 
hostname in the string, or extract the raw hostname by removing the brackets.

----------
nosy: +martin.panter
resolution:  -> duplicate
status: open -> pending
superseder:  -> httplib/http.client HTTPConnection._set_hostport() regression

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34516>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to