Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
IPv6 in URL is missing brackets in proxy CONNECT request #3841
Long story short
Requests to a URL containing an IPv6 address while using a proxy results in a malformed
The request should make it through the proxy and reach the IPv6 server.
The proxy is returning an error (400, Bad request).
Steps to reproduce
tcpdump shows (notice the missing brackets):
I patched https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client_reqrep.py#L543 to add the brackets and confirmed that the request is going through.