Skip to content

Commit

Permalink
Fixes #86 slicing empty path in matchRoute (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
abahmed authored Apr 18, 2021
1 parent 8475594 commit 812e8fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ func (n *node) matchRoute(path string, ctx *context) handlersChain {
}

currentNode := n
path = path[1:]

if pathLen > 0 {
path = path[1:]
}

for {
pathLen = len(path)
Expand Down

0 comments on commit 812e8fb

Please sign in to comment.