From 9cbb5e3e6190b3a17c6f9365ddcd1817ef9df2f0 Mon Sep 17 00:00:00 2001 From: Bruce Zhang Date: Mon, 21 Nov 2016 13:41:47 +0800 Subject: [PATCH] Revert "fix the issue:if the router path is /user/:name/*action, you will get the value of action param is /*{action}" This reverts commit d3be8e5a98fb3e4f71ddd479faafc631bcf99ffe. --- tree.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tree.go b/tree.go index 74d3e6b7..4f1da271 100644 --- a/tree.go +++ b/tree.go @@ -280,8 +280,7 @@ func (n *node) insertChild(numParams uint8, path string, fullPath string, handle panic("wildcards must be named with a non-empty name in path '" + fullPath + "'") } - // any wildcard is param - if c == ':' || c == '*' { // param + if c == ':' { // param // split path at the beginning of the wildcard if i > 0 { n.path = path[offset:i]