Skip to content

Commit

Permalink
Solve issue seanmonstar#1462
Browse files Browse the repository at this point in the history
  • Loading branch information
cipherbrain committed Aug 4, 2023
1 parent 99bbae6 commit 816c9e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ gzip = ["async-compression", "async-compression/gzip", "tokio-util"]

brotli = ["async-compression", "async-compression/brotli", "tokio-util"]

deflate = ["async-compression", "async-compression/zlib", "tokio-util"]
deflate = ["async-compression", "async-compression/deflate", "tokio-util"]

json = ["serde_json"]

Expand Down
4 changes: 2 additions & 2 deletions src/async_impl/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use async_compression::tokio::bufread::GzipDecoder;
use async_compression::tokio::bufread::BrotliDecoder;

#[cfg(feature = "deflate")]
use async_compression::tokio::bufread::ZlibDecoder;
use async_compression::tokio::bufread::DeflateDecoder;

use bytes::Bytes;
use futures_core::Stream;
Expand Down Expand Up @@ -62,7 +62,7 @@ enum Inner {

/// A `Deflate` decoder will uncompress the deflated response content before returning it.
#[cfg(feature = "deflate")]
Deflate(Pin<Box<FramedRead<ZlibDecoder<PeekableIoStreamReader>, BytesCodec>>>),
Deflate(Pin<Box<FramedRead<DeflateDecoder<PeekableIoStreamReader>, BytesCodec>>>),

/// A decoder that doesn't have a value yet.
#[cfg(any(feature = "brotli", feature = "gzip", feature = "deflate"))]
Expand Down

0 comments on commit 816c9e3

Please sign in to comment.