1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 13:29:24 +00:00

propagate response error in all necessary places

This commit is contained in:
Rob Ede 2022-01-24 11:56:23 +00:00
parent d7c5c966d2
commit 5454699bab
No known key found for this signature in database
GPG key ID: 97C636207D3EF933

View file

@ -238,7 +238,7 @@ impl<B> HttpResponse<B> {
(
HttpResponse {
res: head,
error: None,
error: self.error,
},
body,
)
@ -248,7 +248,7 @@ impl<B> HttpResponse<B> {
pub fn drop_body(self) -> HttpResponse<()> {
HttpResponse {
res: self.res.drop_body(),
error: None,
error: self.error,
}
}