Fixed a typo in get().
This commit is contained in:
parent
257bd7ea76
commit
2bfaae11f2
4
httpr.go
4
httpr.go
@ -70,12 +70,12 @@ outer:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return n.handler, params
|
return curNode.handler, params
|
||||||
}
|
}
|
||||||
|
|
||||||
if pathLen > i+1 {
|
if pathLen > i+1 {
|
||||||
var paramNode *node
|
var paramNode *node
|
||||||
for _, next := range n.children {
|
for _, next := range curNode.children {
|
||||||
if next.endpoint == path[i+1] {
|
if next.endpoint == path[i+1] {
|
||||||
curNode = next
|
curNode = next
|
||||||
continue outer
|
continue outer
|
||||||
|
Loading…
Reference in New Issue
Block a user