Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Requests to a URL containing an IPv6 address while using a proxy results in a malformed CONNECT request.
The request should make it through the proxy and reach the IPv6 server.
The proxy is returning an error (400, Bad request).
async with aiohttp.request(
) as response:
tcpdump shows (notice the missing brackets):
CONNECT 2320:10a:c081:56::363:443 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Python/3.6 aiohttp/3.5.4
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.
The text was updated successfully, but these errors were encountered:
fix missing brackets for IPv6 in proxy CONNECT request
Fix missing brackets for IPv6 in proxy CONNECT request
No branches or pull requests