mirror of https://github.com/fafhrd91/actix-web
fix h2 not using error response
This commit is contained in:
parent
8d61fe0925
commit
e1c32ec015
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue