1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-14 14:18:41 +03:00
parent 9f0872719f
commit d0d7679a98
3 changed files with 3 additions and 5 deletions

View File

@@ -115,7 +115,7 @@ func (s *subdomainRedirectWrapper) Wrapper(w http.ResponseWriter, r *http.Reques
if loopback := netutil.GetLoopbackSubdomain(root); loopback != "" {
root = strings.Replace(root, loopback, context.GetDomain(host), 1)
}
// println("root: " + root)
hasSubdomain := host != root
if !hasSubdomain && !s.isFromRoot {