From a84875b68406e17ec9a011f6f3476bf1edd37475 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Fri, 6 Sep 2024 19:54:15 +0200 Subject: [PATCH] fix url --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4ce7652..3c1bbc3 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ func greet(w http.ResponseWriter, r *http.Request) { } // Replace "localhost" with "mziesel.nl" in the Host header - newHost := strings.Replace(r.Host, "localhost", "mziesel.nl", 1) + newHost := strings.Replace(r.Host, "mzsl.nl", "mziesel.nl", 1) // Construct the new URL for redirection newUrl := "https://" + newHost + r.URL.String()