This commit is contained in:
parent
d7be2e9ac3
commit
a84875b684
2
main.go
2
main.go
@ -16,7 +16,7 @@ func greet(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Replace "localhost" with "mziesel.nl" in the Host header
|
// 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
|
// Construct the new URL for redirection
|
||||||
newUrl := "https://" + newHost + r.URL.String()
|
newUrl := "https://" + newHost + r.URL.String()
|
||||||
|
Loading…
Reference in New Issue
Block a user