fix logging of host header why on earth does net/http **remove** the host header and not make it clear? It's only "documented" in the comments of the fields of the Request struct and not even hinted at in the Header() documentation
1 file changed, 1 insertion(+), 1 deletion(-)
jump to
M internal/server/logging.go → internal/server/logging.go
@@ -32,7 +32,7 @@ scheme := r.Header.Get("X-Forwarded-Proto") if scheme == "" { scheme = "http" } - host := r.Header.Get("Host") + host := r.Host if host == "" { host = opts.defaultHostname }