Skip to content

Commit

Permalink
Adjust the matching order
Browse files Browse the repository at this point in the history
  • Loading branch information
qm012 committed Jun 30, 2021
1 parent 11684d5 commit 463b611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree.go
Expand Up @@ -446,7 +446,7 @@ walk: // Outer loop for walking the tree
n = n.children[i]

// match '/', If this condition is matched, the next route is found
if len(n.fullPath) != 0 && n.wildChild {
if n.wildChild && len(n.fullPath) != 0 {
matchNum++
}
continue walk
Expand Down

0 comments on commit 463b611

Please sign in to comment.