From 9b809023908e9e3a1be6717595d9dca529ae78b4 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 1 Aug 2024 11:58:34 +0400 Subject: [PATCH] fix: return mutable ref to BodyStream --- src/response.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/response.rs b/src/response.rs index 696bb7b..a4732d0 100644 --- a/src/response.rs +++ b/src/response.rs @@ -30,7 +30,7 @@ impl Response { self.message.parse().map_err(|e| LibError::InvalidMime(e)) } - pub fn body(self: &Self) -> &BodyStream { - &self.body + pub fn body(self: &mut Self) -> &mut BodyStream { + &mut self.body } }