fix: wrong when wildcard follows named param (#2983)

This commit is contained in:
jincheng9
2021-12-12 13:30:33 +08:00
committed by GitHub
parent e56d18f19d
commit 7d189814cb
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -595,6 +595,7 @@ func TestTreeTrailingSlashRedirect(t *testing.T) {
"/blog/:p",
"/posts/:b/:c",
"/posts/b/:c/d/",
"/vendor/:x/*y",
}
for _, route := range routes {
recv := catchPanic(func() {
@@ -631,6 +632,7 @@ func TestTreeTrailingSlashRedirect(t *testing.T) {
"/api/world/abc/",
"/blog/pp/",
"/posts/b/c/d",
"/vendor/x",
}
for _, route := range tsrRoutes {