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
028cb5508f
commit
f73e1ea630
4
tree.go
4
tree.go
@ -192,7 +192,8 @@ func (n *node) addRoute(path string, handlers HandlersChain) {
|
|||||||
if len(n.path) >= len(path) || path[len(n.path)] == '/' {
|
if len(n.path) >= len(path) || path[len(n.path)] == '/' {
|
||||||
continue walk
|
continue walk
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
// Wildcard conflict
|
// Wildcard conflict
|
||||||
pathSeg := path
|
pathSeg := path
|
||||||
if n.nType != catchAll {
|
if n.nType != catchAll {
|
||||||
@ -205,7 +206,6 @@ func (n *node) addRoute(path string, handlers HandlersChain) {
|
|||||||
"' in existing prefix '" + prefix +
|
"' in existing prefix '" + prefix +
|
||||||
"'")
|
"'")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
c := path[0]
|
c := path[0]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user