From a5119cee7344d6581988b8b08a0ed9b0cd4fbc69 Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Fri, 13 Sep 2024 14:48:52 +0800 Subject: [PATCH] fix: The error status code was incorrectly set to 405 (#903) --- crates/core/src/routing/filters/others.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/core/src/routing/filters/others.rs b/crates/core/src/routing/filters/others.rs index 370035769..8bb501938 100644 --- a/crates/core/src/routing/filters/others.rs +++ b/crates/core/src/routing/filters/others.rs @@ -16,9 +16,6 @@ impl MethodFilter { impl Filter for MethodFilter { #[inline] fn filter(&self, req: &mut Request, state: &mut PathState) -> bool { - if state.is_ended() { - state.has_any_goal = true; - } req.method() == self.0 } }