From 29a38240d933136d88a57bcd62d9f5d1521a7a5b Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Sat, 26 Nov 2022 23:14:19 -0800 Subject: [PATCH] Fix test --- src/http/middleware.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/middleware.zig b/src/http/middleware.zig index e34f671..97855b1 100644 --- a/src/http/middleware.zig +++ b/src/http/middleware.zig @@ -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; }