diff --git a/httpr.go b/httpr.go index 64ccbab..240c37a 100644 --- a/httpr.go +++ b/httpr.go @@ -111,7 +111,7 @@ outer: return nil } - for _, child := range n.children { + for _, child := range curNode.children { firstChar := path[i+1][0] if (firstChar == ':' || firstChar == '*') && firstChar == child.endpoint[0] { curNode = child