fix url
All checks were successful
Build docker container / Build image (push) Successful in 32s

This commit is contained in:
Mans Ziesel 2024-09-06 19:54:15 +02:00
parent d7be2e9ac3
commit a84875b684

View File

@ -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()