Add identity to from_encoding_header (#880)
This commit is contained in:
@@ -80,6 +80,7 @@ impl CompressionEncoding {
|
|||||||
|
|
||||||
match header_value_str {
|
match header_value_str {
|
||||||
"gzip" if gzip => Ok(Some(CompressionEncoding::Gzip)),
|
"gzip" if gzip => Ok(Some(CompressionEncoding::Gzip)),
|
||||||
|
"identity" => Ok(None),
|
||||||
other => {
|
other => {
|
||||||
let mut status = Status::unimplemented(format!(
|
let mut status = Status::unimplemented(format!(
|
||||||
"Content is compressed with `{}` which isn't supported",
|
"Content is compressed with `{}` which isn't supported",
|
||||||
|
|||||||
Reference in New Issue
Block a user