diff --git a/tower-http/src/compression/body.rs b/tower-http/src/compression/body.rs index b737151b..71dad424 100644 --- a/tower-http/src/compression/body.rs +++ b/tower-http/src/compression/body.rs @@ -40,6 +40,19 @@ pin_project! { } } +impl Default for CompressionBody +where + B: Body + Default, +{ + fn default() -> Self { + Self { + inner: BodyInner::Identity { + inner: B::default(), + }, + } + } +} + impl CompressionBody where B: Body,