Skip to content

Commit

Permalink
Bumped v4.1.5
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Rana <[email protected]>
  • Loading branch information
vishr committed Apr 30, 2019
1 parent 64c6d92 commit 5d2c33a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const (

const (
// Version of Echo
Version = "4.1.4"
Version = "4.1.5"
website = "https://echo.labstack.com"
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
banner = `
Expand Down
7 changes: 2 additions & 5 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ func (g *Group) Use(middleware ...MiddlewareFunc) {
}
// 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.
for _, p := range []string{"", "/*"} {
g.Any(p, func(c Context) error {
return NotFoundHandler(c)
})
}
g.Any("", NotFoundHandler)
g.Any("/*", NotFoundHandler)
}

// CONNECT implements `Echo#CONNECT()` for sub-routes within the Group.
Expand Down
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewRouter(e *Echo) *Router {
func (r *Router) Add(method, path string, h HandlerFunc) {
// Validate path
if path == "" {
panic("echo: path cannot be empty")
path = "/"
}
if path[0] != '/' {
path = "/" + path
Expand Down

0 comments on commit 5d2c33a

Please sign in to comment.