Skip to content

Commit 28d07c3

Browse files
committed
Revert "Fix parameter routes with an extension (/foo/:id.json)"
This reverts commit cf7b555.
1 parent a8aaeb8 commit 28d07c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (r *Router) Add(method, path string, h HandlerFunc) {
6868
j := i + 1
6969

7070
r.insert(method, path[:i], nil, skind, "", nil)
71-
for ; i < l && path[i] != '/' && path[i] != '.'; i++ {
71+
for ; i < l && path[i] != '/'; i++ {
7272
}
7373

7474
pnames = append(pnames, path[j:i])

0 commit comments

Comments
 (0)