From c1ae27e927111703573f103c692404508a251d2e Mon Sep 17 00:00:00 2001 From: orca Date: Fri, 25 Oct 2024 02:32:09 +0000 Subject: [PATCH] udpate --- route/static_route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/static_route.go b/route/static_route.go index 70a1bb9..98a3edd 100644 --- a/route/static_route.go +++ b/route/static_route.go @@ -96,7 +96,7 @@ func (c *CustomFileInfo) ModTime() time.Time { return startTime } -var indexRE = regexp.MustCompile(`/modules/[^\/]*/($|(index\.(html?|aspx?|cgi|do|jsp))|((default|index|home)\.php))`) +var indexRE = regexp.MustCompile(`/($|/modules/[^\/]*/($|(index\.(html?|aspx?|cgi|do|jsp))|((default|index|home)\.php)))`) func (s *StaticRoute) GetRoute() http.Handler { e := echo.New()