1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Revert "Fix parameter routes with an extension (/foo/:id.json)"

This reverts commit cf7b55584d.
This commit is contained in:
Vishal Rana 2018-04-11 22:34:01 -07:00
parent a8aaeb8a26
commit 28d07c3bca

View File

@ -68,7 +68,7 @@ func (r *Router) Add(method, path string, h HandlerFunc) {
j := i + 1
r.insert(method, path[:i], nil, skind, "", nil)
for ; i < l && path[i] != '/' && path[i] != '.'; i++ {
for ; i < l && path[i] != '/'; i++ {
}
pnames = append(pnames, path[j:i])