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.02:18:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535422694.29.0.56676864532.issue34516@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks so much for your reply. 

when httplib.HTTPConnection is inited with host [fc00::0a08::2] and port 35357, we can make a request normally. only the 'Host' set in header is wrong. I think the most simple way to fix this is adding judgement condition, maybe like this:
974                    # Wrap the IPv6 Host Header with [] (RFC 2732)
975                    if host_enc.find(':') >= 0 and host_enc.find(']') < 0:
976                        host_enc = "[" + host_enc + "]"

or rules should be given, because when port is not default, only (host=[aaa:bbb]:123, port=None) and (host=aaa:bbb, port=123) are valid for httplib now.

so sorry for my poor English. hope you can understand what im saying. :)
History
Date User Action Args
2018-08-28 02:18:14visionwunsetrecipients: + visionwun, xtreak, prudvinit
2018-08-28 02:18:14visionwunsetmessageid: <1535422694.29.0.56676864532.issue34516@psf.upfronthosting.co.za>
2018-08-28 02:18:14visionwunlinkissue34516 messages
2018-08-28 02:18:13visionwuncreate