mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 21:37:58 +03:00
Process write buffer if filter wrote to write buffer during reading
This commit is contained in:
parent
dd2dda09d1
commit
dec6fd3dd8
14 changed files with 132 additions and 86 deletions
|
@ -242,7 +242,7 @@ impl<'a, 'b> io::Read for Wrapper<'a, 'b> {
|
|||
|
||||
impl<'a, 'b> io::Write for Wrapper<'a, 'b> {
|
||||
fn write(&mut self, src: &[u8]) -> io::Result<usize> {
|
||||
self.1.get_dst().extend_from_slice(src);
|
||||
self.1.with_dst_buf(|buf| buf.extend_from_slice(src));
|
||||
Ok(src.len())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue