Skip to content

Commit

Permalink
Remove group.Use registering Any routes that break other routes
Browse files Browse the repository at this point in the history
Fixes #1657
  • Loading branch information
Segev Finer committed Nov 8, 2020
1 parent 151ed6b commit f72eaa4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions group.go
Expand Up @@ -23,10 +23,6 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
if len(g.middleware) == 0 {
return
}
// Allow all requests to reach the group as they might get dropped if router
// doesn't find a match, making none of the group middleware process.
g.Any("", NotFoundHandler)
g.Any("/*", NotFoundHandler)
}

// CONNECT implements `Echo#CONNECT()` for sub-routes within the Group.
Expand Down

0 comments on commit f72eaa4

Please sign in to comment.