log scheme directly from request
Alan Pearce alan@alanpearce.eu
Mon, 24 Jun 2024 17:20:35 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M internal/server/logging.go → internal/server/logging.go
@@ -24,7 +24,7 @@ } func wrapHandlerWithLogging(wrappedHandler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - scheme := r.Header.Get("X-Forwarded-Proto") + scheme := r.URL.Scheme if scheme == "" { scheme = "http" }