From c5e8c151cea3abe66a408d44cce44e66ff2d01b3 Mon Sep 17 00:00:00 2001 From: Compositr Date: Sat, 2 Nov 2024 10:48:59 +1100 Subject: [PATCH] fix: handle multiple handlers + see desc change break -> continue to not 404 when the first hander doesn't match --- src/handlers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 7d2d5da..008a95a 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -100,14 +100,14 @@ impl Handlers { continue; } - break 'matching_loop; + continue 'matching_loop; } if url_segment == path_segment { continue; } - break 'matching_loop; + continue 'matching_loop; } return Some(handler);