1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 14:49:20 +02:00

fix h2 not using error response (#1080)

* fix h2 not using error response

* add fix change log

* fix h2 service error tests
This commit is contained in:
Ronald Chan
2019-09-09 18:24:57 +08:00
committed by Nikolay Kim
parent 1d96ae9bc3
commit 5e8f1c338c
4 changed files with 9 additions and 6 deletions

View File

@ -257,8 +257,8 @@ where
}
}
Ok(Async::NotReady) => Ok(Async::NotReady),
Err(_e) => {
let res: Response = Response::InternalServerError().finish();
Err(e) => {
let res: Response = e.into().into();
let (res, body) = res.replace_body(());
let mut send = send.take().unwrap();