From 5454699babf31859f69b18137285a0729651009b Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 24 Jan 2022 11:56:23 +0000 Subject: [PATCH] propagate response error in all necessary places --- src/response/response.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/response/response.rs b/src/response/response.rs index 0469c5ce9..6449c586d 100644 --- a/src/response/response.rs +++ b/src/response/response.rs @@ -238,7 +238,7 @@ impl HttpResponse { ( HttpResponse { res: head, - error: None, + error: self.error, }, body, ) @@ -248,7 +248,7 @@ impl HttpResponse { pub fn drop_body(self) -> HttpResponse<()> { HttpResponse { res: self.res.drop_body(), - error: None, + error: self.error, } }