1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-18 22:01:50 +01: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 { HttpResponse {
res: head, res: head,
error: None, error: self.error,
}, },
body, body,
) )
@ -248,7 +248,7 @@ impl<B> HttpResponse<B> {
pub fn drop_body(self) -> HttpResponse<()> { pub fn drop_body(self) -> HttpResponse<()> {
HttpResponse { HttpResponse {
res: self.res.drop_body(), res: self.res.drop_body(),
error: None, error: self.error,
} }
} }