1
Fork 0

Fix typo in handling of redirects.

This commit is contained in:
Juliusz Chroboczek 2021-10-30 19:25:18 +02:00
parent 99e2e0a263
commit c00f84bd9d
1 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,10 @@ func redirect(w http.ResponseWriter, r *http.Request) bool {
return false
}
if strings.EqualFold(r.Host, conf.CanonicalHost) {
return false
}
u := url.URL{
Scheme: "https",
Host: conf.CanonicalHost,