From e69d78542a4ec92da5931b3db105b14a39a4c964 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 22 May 2024 15:47:25 +0200 Subject: fix(web): fetch host from request, not header, where it's expected --- internal/server/logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/logging.go b/internal/server/logging.go index ac8468f..bbe9469 100644 --- a/internal/server/logging.go +++ b/internal/server/logging.go @@ -51,7 +51,7 @@ func wrapHandlerWithLogging(wrappedHandler http.Handler, opts wrappedHandlerOpti if scheme == "" { scheme = "http" } - host := r.Header.Get("Host") + host := r.Host if host == "" { host = opts.defaultHostname } -- cgit 1.4.1