Add identity to from_encoding_header (#880)

This commit is contained in:
Theodore Zilist
2022-01-31 23:29:33 +01:00
committed by GitHub
parent a337f132a5
commit 468e4221f0
+1
View File
@@ -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",