···421421 }
422422423423 let mut path = url.path().to_string();
424424+425425+ if self
426426+ .options
427427+ .contains(&RouterOption::AllowCaseInsensitiveLookup)
428428+ {
429429+ path = path.to_lowercase();
430430+ }
431431+424432 let mut route = self.routes.at(&path);
425433426434 if route.is_err() {
+3
src/router_option.rs
···77 /// If enabled, adds a trailing slash to the request URL path if a route
88 /// exists for the path with the slash (e.g., `/foo` becomes `/foo/`).
99 AddMissingTrailingSlash,
1010+ /// If enabled, the router will perform case-insensitive matching for
1111+ /// incoming request URL paths (e.g., `/foo` will match `/Foo` or `/FOO`).
1212+ AllowCaseInsensitiveLookup,
1013}