diff --git a/src/header/common/transfer_encoding.rs b/src/header/common/transfer_encoding.rs index 2ee1f2ae..311dd598 100644 --- a/src/header/common/transfer_encoding.rs +++ b/src/header/common/transfer_encoding.rs @@ -48,7 +48,10 @@ impl FromStr for Encoding { fn from_str(s: &str) -> Option { match s { "chunked" => Some(Chunked), - _ => None + "deflate" => Some(Deflate), + "gzip" => Some(Gzip), + "compress" => Some(Compress), + _ => Some(EncodingExt(s.to_string())) } } }