1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02: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

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,
} }
} }