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:31:07 -07:00
parent 38f27e229c
commit f526774740

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])