net/http: fill Request.TLS field if underlying conn implements ConnectionState like net/http2 #56104
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
Using a custom net.Listener to do traffic multiplexing on the same port.
6ccd66 added tls state field for http2 handler, but currently there is no such thing done for stdlib automatically.
Right now in caddy, I'm using ConnContext to associate net.Conn with context and set it myself in http handler, but I'm hoping stdlib will do it automatically.
What did you expect to see?
http.Request.TLS field is automatically set.
What did you see instead?
http.Request.TLS field is not automatically set.
The text was updated successfully, but these errors were encountered: