Fix test
This commit is contained in:
parent
de19083cd9
commit
29a38240d9
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ fn pathMatches(route: []const u8, path: []const u8) bool {
|
|||
const path_segment = path_iter.next() orelse return false;
|
||||
if (route_segment.len > 0 and route_segment[0] == ':') {
|
||||
// Route Argument
|
||||
if (path_segment.len == 0) return error.RouteMismatch;
|
||||
if (path_segment.len == 0) return false;
|
||||
} else {
|
||||
if (!std.ascii.eqlIgnoreCase(route_segment, path_segment)) return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue