1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00
Gerasimos (Makis) Maropoulos
2020-08-14 13:04:48 +03:00
parent 558d6d41bb
commit dc35391ceb
3 changed files with 5 additions and 5 deletions

View File

@@ -327,7 +327,7 @@ func canHandleSubdomain(ctx *context.Context, subdomain string) bool {
return true
}
requestHost := ctx.Request().URL.Host
requestHost := ctx.Host()
if netutil.IsLoopbackSubdomain(requestHost) {
// this fixes a bug when listening on
// 127.0.0.1:8080 for example