mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:50:54 +00:00
Update tree.go
This commit is contained in:
parent
508a57be1e
commit
ddd9bf1305
2
tree.go
2
tree.go
@ -209,7 +209,7 @@ func (t *Tree) addseg(segments []string, route interface{}, wildcards []string,
|
||||
t.leaves = append(t.leaves, &leafInfo{runObject: route, wildcards: wildcards})
|
||||
}
|
||||
for i, v := range wildcards {
|
||||
if v==":" && i!=0{
|
||||
if v==":" {
|
||||
t.leaves = append(t.leaves, &leafInfo{runObject: route, wildcards: wildcards[:i+1]})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user