Parse Transfer Encodings that we don't handle
We should not throw away information here, as downstream users may want to handle alternative encodings.
This commit is contained in:
		| @@ -48,7 +48,10 @@ impl FromStr for Encoding { | ||||
|     fn from_str(s: &str) -> Option<Encoding> { | ||||
|         match s { | ||||
|             "chunked" => Some(Chunked), | ||||
|             _ => None | ||||
|             "deflate" => Some(Deflate), | ||||
|             "gzip" => Some(Gzip), | ||||
|             "compress" => Some(Compress), | ||||
|             _ => Some(EncodingExt(s.to_string())) | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user