This commit is contained in:
jaina heartles 2022-11-26 23:14:19 -08:00
parent de19083cd9
commit 29a38240d9

View file

@ -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;
}