From 4f54ab415606cd67db5b3b2d2b36d1154f16bdf4 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 28 May 2023 02:43:09 +0400 Subject: [PATCH] Found and fixed a typo. n -> curNode. --- httpr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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