mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
2274d47f89
commit
926cc42506
@ -286,7 +286,7 @@ func (r *Router) Find(method, path string, ctx *Context) (h HandlerFunc, e *Echo
|
||||
// Strip trailing slash
|
||||
if r.echo.stripTrailingSlash {
|
||||
l := len(path)
|
||||
if path != "" && path[l-1] == '/' { // Issue #218
|
||||
if path != "/" && path[l-1] == '/' { // Issue #218
|
||||
path = path[:l-1]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user