fix: return mutable ref to BodyStream

This commit is contained in:
DarkCat09 2024-08-01 11:58:34 +04:00
parent 6efe51bb15
commit 9b80902390
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -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
}
}