File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ const (
213
213
)
214
214
215
215
const (
216
- version = "3.2.5 "
216
+ version = "3.2.6 "
217
217
website = "https://echo.labstack.com"
218
218
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
219
219
banner = `
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
20
20
g .middleware = append (g .middleware , middleware ... )
21
21
// Allow all requests to reach the group as they might get dropped if router
22
22
// doesn't find a match, making none of the group middleware process.
23
- g .echo .Any (path .Clean (g .prefix + "/*" ), func (c Context ) error {
24
- return NotFoundHandler (c )
25
- }, g .middleware ... )
23
+ for _ , p := range []string {"" , "/*" } {
24
+ g .echo .Any (path .Clean (g .prefix + p ), func (c Context ) error {
25
+ return NotFoundHandler (c )
26
+ }, g .middleware ... )
27
+ }
26
28
}
27
29
28
30
// CONNECT implements `Echo#CONNECT()` for sub-routes within the Group.
You can’t perform that action at this time.
0 commit comments