mirror of https://github.com/gin-gonic/gin.git
fix(routergroup.go): disallow that a method don't match regEnLetter
Signed-off-by: bestgopher <84328409@qq.com>
This commit is contained in:
parent
c2ba8f19ec
commit
d4022e3f02
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue