fix annotation

This commit is contained in:
Michael Pan 2022-03-18 20:44:38 +08:00
parent d8dfaaeb2e
commit 44b4f1b3aa

View File

@ -325,7 +325,7 @@ func (n *node) insertChild(path string, fullPath string, handlers HandlersChain)
n.priority++ n.priority++
// if the path doesn't end with the wildcard, then there // if the path doesn't end with the wildcard, then there
// will be another non-wildcard subpath starting with '/' // will still exist subpath starting with '/'
if len(wildcard) < len(path) { if len(wildcard) < len(path) {
path = path[len(wildcard):] path = path[len(wildcard):]