all repos — searchix @ e69d78542a4ec92da5931b3db105b14a39a4c964

Search engine for NixOS, nix-darwin, home-manager and NUR users

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
commit

e69d78542a4ec92da5931b3db105b14a39a4c964

parent

7fcc9653aaffcfc4c84acfbddc7b4d728daeb7eb

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M internal/server/logging.gointernal/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
 		}