mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
minor
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user