mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.EqualFold(r.Host, conf.CanonicalHost) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
u := url.URL{
|
u := url.URL{
|
||||||
Scheme: "https",
|
Scheme: "https",
|
||||||
Host: conf.CanonicalHost,
|
Host: conf.CanonicalHost,
|
||||||
|
|
Loading…
Reference in a new issue