Skip to content

Commit

Permalink
Add call_next to DefaultStatusOK
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Sep 24, 2024
1 parent 2c1da20 commit e6f864f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/core/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e6f864f

Please sign in to comment.