mirror of
https://github.com/fosrl/newt.git
synced 2026-09-17 03:19:06 +02: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.