Skip to content

Commit

Permalink
fix: The error status code was incorrectly set to 405 (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Sep 13, 2024
1 parent 5851c4b commit a5119ce
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/core/src/routing/filters/others.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit a5119ce

Please sign in to comment.