From d4022e3f02ccd2ca45acc4165b73e892178641e1 Mon Sep 17 00:00:00 2001 From: bestgopher <84328409@qq.com> Date: Wed, 13 Sep 2023 23:13:42 +0800 Subject: [PATCH] fix(routergroup.go): disallow that a method don't match regEnLetter Signed-off-by: bestgopher <84328409@qq.com> --- routergroup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routergroup.go b/routergroup.go index c833fe8f..75456c8a 100644 --- a/routergroup.go +++ b/routergroup.go @@ -155,7 +155,7 @@ func (group *RouterGroup) Any(relativePath string, handlers ...HandlerFunc) IRou // Match registers a route that matches the specified methods that you declared. func (group *RouterGroup) Match(methods []string, relativePath string, handlers ...HandlerFunc) IRoutes { for _, method := range methods { - group.handle(method, relativePath, handlers) + group.Handle(method, relativePath, handlers...) } return group.returnObj()