From 78294a5394efbfd70434c630dbca2bd52e0ad04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Wed, 2 Sep 2026 19:21:36 +0200 Subject: [PATCH] Use request.Host over Host header Go already figured out this --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 398eca9..5addbbc 100644 --- a/main.go +++ b/main.go @@ -528,7 +528,7 @@ func getHost(r *http.Request) string { } // Fallback to Host header - if host := r.Header.Get("Host"); host != "" { + if host := r.Host; host != "" { return host }