New issue
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? Sign in to your account
net/http: make Transport return a net.Conn Response.Body on successful CONNECT #32273
Comments
Thank you @bradfitz . What would be the recommended workaround/way to do a TLS client in golang through an HTTPS (and non-http2) proxy for CONNECT tunneling? |
The net/http.Transport already supports CONNECT. I don't know what io.Pipe you're talking about. See https://github.com/golang/go/wiki/Questions for forums where more people are available to help. I don't have much time this week. |
@bradfitz sorry for not providing the full context. What I wanted to ask was if there is a way to get
I can pass a |
No worries, I'm able to do that by simulating a
|
People today typically do something like this: There are CLs open to add a package for this: But that's only somewhat related to this issue. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
As per #17227,
res.Body
should be anet.Conn
after successfulCONNECT
.What did you see instead?
Instead it is of the type
*http.bodyEOFSignal
@bradfitz can you please take a look?
The text was updated successfully, but these errors were encountered: