Skip to content

Commit

Permalink
Add identity to from_encoding_header (hyperium#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzilist committed Jan 31, 2022
1 parent a337f13 commit 468e422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tonic/src/codec/compression.rs
Expand Up @@ -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",
Expand Down

0 comments on commit 468e422

Please sign in to comment.