Merge pull request #30 from reem/dont-lose-transfer-encoding

Parse Transfer Encodings that we don't handle
This commit is contained in:
Sean McArthur
2014-09-09 16:05:26 -07:00

View File

@@ -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()))
}
}
}