fix(web): fetch host from request, not header, where it's expected
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 15:47:25 +0200
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M internal/server/logging.go → internal/server/logging.go
@@ -51,7 +51,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 }