1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-25 18:15:57 +01:00

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

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,