net/http: ConfigureTransport does not work for Transport with custom DialTLS #41236
What version of Go are you using (
The text was updated successfully, but these errors were encountered:
I spent some time looking through the code to find why this happens. The code splits here for custom and non-custom DialTLS.
In your example, the custom DialTLS is indeed called, but 1) fails to set up the
I'll leave it for more experienced people to chime in, on whether it's a bug; I understand it might be a little disorienting though.
Taking a step back I noticed that the custom DialTLS that HTTP/1.1 and HTTP/2.0 are not compatible with each other.
In HTTP/2.0 though,
so, I added
which I think is caused by the server replying with an http2 response while it is expecting an http/1.1 response
After setting the
After more looking into, I found the issue in