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:
@@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user