about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 15:47:25 +0200
committerAlan Pearce2024-05-22 15:47:25 +0200
commite69d78542a4ec92da5931b3db105b14a39a4c964 (patch)
treef93546342c7799e07e56173a7dfba3c60c7d5c4c /internal/server
parent7fcc9653aaffcfc4c84acfbddc7b4d728daeb7eb (diff)
downloadsearchix-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.go2
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
 		}