missed a spot

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
pull/6924/head
Mohammed Al Sahaf 2025-06-02 20:25:14 +03:00
parent 13ae457ecf
commit 0459b01b83
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -548,7 +548,10 @@ func (MatchPath) matchPatternWithEscapeSequence(escapedPath, matchPath string) b
// increment iPath every time we consume a char from the path;
// iPattern and iPath are our cursors/iterator positions for each string
var iPattern, iPath int
for iPattern < len(matchPath) && iPath < len(escapedPath) {
for {
if iPattern >= len(matchPath) || iPath >= len(escapedPath) {
break
}
// get the next character from the request path
pathCh := string(escapedPath[iPath])