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 visionwun
Recipients prudvinit, visionwun, xtreak
Date 2018-08-28.08:39:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535445557.72.0.56676864532.issue34516@psf.upfronthosting.co.za>
In-reply-to
Content
yeah, i noticed that. but this function also return host with '[]'.

183    # IPv6
184    if url and url[0] == '[':
185        host, url = url.split(']', 1)
186        host += ']'

if url is [aaa:bbb]:123, host is [aaa:bbb] and url is ':123'after this process.

when host=[aaa:bbb] passed to httplib.HTTPConnection, its function 'putrequest' will put 'Host:[[aaa:bbb]]:123' in headers.
History
Date User Action Args
2018-08-28 08:39:17visionwunsetrecipients: + visionwun, xtreak, prudvinit
2018-08-28 08:39:17visionwunsetmessageid: <1535445557.72.0.56676864532.issue34516@psf.upfronthosting.co.za>
2018-08-28 08:39:17visionwunlinkissue34516 messages
2018-08-28 08:39:17visionwuncreate