From e6f864f8e0dc3186db8893781143985a544f673e Mon Sep 17 00:00:00 2001 From: Chrislearn Young Date: Wed, 25 Sep 2024 07:21:25 +0800 Subject: [PATCH] Add call_next to DefaultStatusOK --- crates/core/src/service.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/core/src/service.rs b/crates/core/src/service.rs index d7ee9135b..e7d209c4b 100644 --- a/crates/core/src/service.rs +++ b/crates/core/src/service.rs @@ -177,11 +177,12 @@ struct DefaultStatusOK; impl Handler for DefaultStatusOK { async fn handle( &self, - _req: &mut Request, - _depot: &mut Depot, + req: &mut Request, + depot: &mut Depot, res: &mut Response, - _ctrl: &mut FlowCtrl, + ctrl: &mut FlowCtrl, ) { + ctrl.call_next(req, depot, res).await; if res.status_code.is_none() { res.status_code = Some(StatusCode::OK); }