diff options
author | Alan Pearce | 2024-05-22 15:47:25 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-22 15:47:25 +0200 |
commit | e69d78542a4ec92da5931b3db105b14a39a4c964 (patch) | |
tree | f93546342c7799e07e56173a7dfba3c60c7d5c4c /internal/server | |
parent | 7fcc9653aaffcfc4c84acfbddc7b4d728daeb7eb (diff) | |
download | searchix-e69d78542a4ec92da5931b3db105b14a39a4c964.tar.lz searchix-e69d78542a4ec92da5931b3db105b14a39a4c964.tar.zst searchix-e69d78542a4ec92da5931b3db105b14a39a4c964.zip |
fix(web): fetch host from request, not header, where it's expected
Diffstat (limited to 'internal/server')
-rw-r--r-- | internal/server/logging.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |