mirror of
https://github.com/fosrl/newt.git
synced 2026-05-14 12:19:53 +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.