Skip to content

Commit 5d2c33a

Browse files
committed
Bumped v4.1.5
Signed-off-by: Vishal Rana <[email protected]>
1 parent 64c6d92 commit 5d2c33a

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

echo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const (
224224

225225
const (
226226
// Version of Echo
227-
Version = "4.1.4"
227+
Version = "4.1.5"
228228
website = "https://echo.labstack.com"
229229
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
230230
banner = `

group.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
2525
}
2626
// Allow all requests to reach the group as they might get dropped if router
2727
// doesn't find a match, making none of the group middleware process.
28-
for _, p := range []string{"", "/*"} {
29-
g.Any(p, func(c Context) error {
30-
return NotFoundHandler(c)
31-
})
32-
}
28+
g.Any("", NotFoundHandler)
29+
g.Any("/*", NotFoundHandler)
3330
}
3431

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

router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewRouter(e *Echo) *Router {
5757
func (r *Router) Add(method, path string, h HandlerFunc) {
5858
// Validate path
5959
if path == "" {
60-
panic("echo: path cannot be empty")
60+
path = "/"
6161
}
6262
if path[0] != '/' {
6363
path = "/" + path

0 commit comments

Comments
 (0)