Browse Source

chore: send not found text when 404

pull/51/head
sigoden 3 years ago
parent
commit
df48021757
  1. 1
      src/server.rs

1
src/server.rs

@ -1034,6 +1034,7 @@ fn status_forbid(res: &mut Response) { @@ -1034,6 +1034,7 @@ fn status_forbid(res: &mut Response) {
fn status_not_found(res: &mut Response) {
*res.status_mut() = StatusCode::NOT_FOUND;
*res.body_mut() = Body::from("Not Found");
}
fn status_no_content(res: &mut Response) {

Loading…
Cancel
Save