mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
#1399[FIX] file server in subdomain with request path "/"
Former-commit-id: de4326943640706a9a2f1418327c4a69bc5f85d9
This commit is contained in:
@@ -233,7 +233,7 @@ func splitSubdomainAndPath(fullUnparsedPath string) (subdomain string, path stri
|
||||
|
||||
splitPath := strings.Split(s, ".")
|
||||
if len(splitPath) == 2 && splitPath[1] == "" {
|
||||
return splitPath[0], "/"
|
||||
return splitPath[0] + ".", "/"
|
||||
}
|
||||
|
||||
slashIdx := strings.IndexByte(s, '/')
|
||||
|
||||
Reference in New Issue
Block a user