mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 13:51:50 +01:00
propagate response error in all necessary places
This commit is contained in:
parent
d7c5c966d2
commit
5454699bab
@ -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…
x
Reference in New Issue
Block a user