Repository navigation
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When a request uses the
targetextension through an HTTP proxy, the target isapplied to the CONNECT request too:
CONNECT / HTTP/1.1is sent instead ofCONNECT example.com:443 HTTP/1.1, and the proxy replies400 Bad Request.Without
extensions=...the request succeeds.AsyncTunnelHTTPConnectionandAsyncForwardHTTPConnectionpass all of theendpoint request's extensions to the
Requestthey send to the proxy. Some ofthose extensions describe the endpoint, not the proxy hop: 2.13.1 fixed this
for
sni_hostnameby filtering it out, buttargethas the same problem (theforward proxy sends
GET /instead of absolute-formGET http://...).Instead of growing an exclude list, only
timeoutandtracecould be passedon, since those are the extensions httpcore reads that apply to the proxy hop:
The minimal alternative is to exclude
targetnext tosni_hostname.All reactions