fix: return mutable ref to BodyStream
This commit is contained in:
parent
6efe51bb15
commit
9b80902390
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue