chen wu added the comment:
to fix this, we change the code of our urilib3. before passing params to
httplib, we set Host in headers if it's ipv6 address.
Thanks so much.
--
resolution: duplicate -> not a bug
stage: -> resolved
status: pendin
chen wu added the comment:
yeah, i noticed that. but this function also return host with '[]'.
183# IPv6
184if url and url[0] == '[':
185host, url = url.split(']', 1)
186host += ']'
if url is [aaa:bbb]:123, host is [aaa:bbb] an
chen wu added the comment:
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 condit
New submission from chen wu :
when I tried to request a url like "https://[fc00:0a08::2]:35357", I got 400.
The code is like:
import requests
requests.get("https://[fc00:0a08::2]:35357";, verify=False)
And the apache logs:
vhost.c(889): [client fc00:ac1c::9a5:58