mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Fix typo in handling of redirects.
This commit is contained in:
parent
99e2e0a263
commit
c00f84bd9d
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue