mirror of
https://github.com/fosrl/newt.git
synced 2026-07-17 19:39:51 +00:00
httpConnCtx wraps *tls.Conn behind net.Conn, so Go's http.Server cannot detect TLS via type assertion and r.TLS is always nil. SetXForwarded() then always writes X-Forwarded-Proto: http. Override using the isTLS context flag already set by ConnContext.