Found and fixed a typo. n -> curNode.
This commit is contained in:
parent
9cda541108
commit
4f54ab4156
2
httpr.go
2
httpr.go
@ -111,7 +111,7 @@ outer:
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, child := range n.children {
|
for _, child := range curNode.children {
|
||||||
firstChar := path[i+1][0]
|
firstChar := path[i+1][0]
|
||||||
if (firstChar == ':' || firstChar == '*') && firstChar == child.endpoint[0] {
|
if (firstChar == ':' || firstChar == '*') && firstChar == child.endpoint[0] {
|
||||||
curNode = child
|
curNode = child
|
||||||
|
Loading…
Reference in New Issue
Block a user