Repair path matching where no explicit PathPatternElement::Rest is present

This commit is contained in:
Tony Garnock-Jones 2024-04-01 14:58:55 +02:00
parent 1f0c9d2883
commit 0c06ae9601
1 changed files with 4 additions and 1 deletions

View File

@ -187,7 +187,10 @@ fn path_pattern_matches(path_pat: &http::PathPattern, path: &Vec<String>) -> boo
http::PathPatternElement::Rest => return true,
}
}
true
match path_iter.next() {
Some(_more) => false,
None => true,
}
}
fn try_hostname<'table>(