mirror of
https://github.com/actix/actix-web.git
synced 2025-02-03 04:42:21 +00:00
propagate response error in all necessary places
This commit is contained in:
parent
d7c5c966d2
commit
5454699bab
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue