fix annotation

This commit is contained in:
Michael Pan 2022-03-18 21:08:37 +08:00
parent 44b4f1b3aa
commit 67ece032ea

View File

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