Update tree.go

This commit is contained in:
田欧 2019-02-20 16:23:38 +08:00 committed by GitHub
parent cecb40bbe9
commit 09956d42fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ func (n *node) addRoute(path string, handlers HandlersChain) {
continue walk
} else {
// Wildcard conflict
pathSeg := path
pathSeg := path
if n.nType != catchAll {
pathSeg = strings.SplitN(path, "/", 2)[0]
}