fix cname issue & test

This commit is contained in:
vt-d
2025-09-09 21:34:48 +05:30
parent b6379f97d2
commit 3b2060f43b
2 changed files with 71 additions and 12 deletions

View File

@@ -577,8 +577,8 @@ mod tests {
assert!(!route.matches(&GurtMethod::POST, "/test"));
assert!(!route.matches(&GurtMethod::GET, "/other"));
assert!(!route.matches(&GurtMethod::GET, "/test?foo=bar"));
assert!(!route.matches(&GurtMethod::GET, "/test?page=1&limit=100"));
assert!(route.matches(&GurtMethod::GET, "/test?foo=bar"));
assert!(route.matches(&GurtMethod::GET, "/test?page=1&limit=100"));
let wildcard_route = Route::get("/api/*");
assert!(wildcard_route.matches(&GurtMethod::GET, "/api/users"));