Test case showing gzip chunk not pooling

This commit is contained in:
Martin Algesten
2022-10-18 21:27:09 +01:00
committed by Jacob Hoffman-Andrews
parent a2836c49a7
commit 5d9e89917c
2 changed files with 58 additions and 3 deletions

View File

@@ -571,7 +571,7 @@ impl Response {
}
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
enum Compression {
pub(crate) enum Compression {
#[cfg(feature = "brotli")]
Brotli,
#[cfg(feature = "gzip")]
@@ -592,7 +592,7 @@ impl Compression {
/// Wrap the raw reader with a decompressing reader
#[allow(unused_variables)] // when no features enabled, reader is unused (unreachable)
fn wrap_reader(
pub(crate) fn wrap_reader(
self,
reader: Box<dyn Read + Send + Sync + 'static>,
) -> Box<dyn Read + Send + Sync + 'static> {