From 468e4221f0c496d9ffb4de24d3658b9267e884b1 Mon Sep 17 00:00:00 2001 From: Theodore Zilist <14153237+tzilist@users.noreply.github.com> Date: Mon, 31 Jan 2022 14:29:33 -0800 Subject: [PATCH] Add `identity` to `from_encoding_header` (#880) --- tonic/src/codec/compression.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tonic/src/codec/compression.rs b/tonic/src/codec/compression.rs index 8f4c279fd..fa57a826c 100644 --- a/tonic/src/codec/compression.rs +++ b/tonic/src/codec/compression.rs @@ -80,6 +80,7 @@ impl CompressionEncoding { match header_value_str { "gzip" if gzip => Ok(Some(CompressionEncoding::Gzip)), + "identity" => Ok(None), other => { let mut status = Status::unimplemented(format!( "Content is compressed with `{}` which isn't supported",