mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
Update tree.go
This commit is contained in:
parent
cecb40bbe9
commit
09956d42fa
2
tree.go
2
tree.go
@ -192,7 +192,7 @@ func (n *node) addRoute(path string, handlers HandlersChain) {
|
|||||||
continue walk
|
continue walk
|
||||||
} else {
|
} else {
|
||||||
// Wildcard conflict
|
// Wildcard conflict
|
||||||
pathSeg := path
|
pathSeg := path
|
||||||
if n.nType != catchAll {
|
if n.nType != catchAll {
|
||||||
pathSeg = strings.SplitN(path, "/", 2)[0]
|
pathSeg = strings.SplitN(path, "/", 2)[0]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user