From 99f44c89a6438404678ac8ce28e850e7408228d1 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 23 Sep 2024 03:08:38 +0000 Subject: [PATCH] multiple_members() --- src/deflate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deflate.rs b/src/deflate.rs index 9a1c3b6..83f2b13 100644 --- a/src/deflate.rs +++ b/src/deflate.rs @@ -32,7 +32,8 @@ impl DeflateStream { pub(crate) fn new(stream: T) -> Self { let (read_half, write_half) = tokio::io::split(stream); let read_half = tokio::io::BufReader::new(read_half); - let decoder = DeflateDecoder::new(read_half); + let mut decoder = DeflateDecoder::new(read_half); + decoder.multiple_members(true); let encoder = DeflateEncoder::new(write_half); Self { decoder, encoder } }