Commit c00f84bd authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in handling of redirects.

parent 99e2e0a2
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment