Update flate2 to 1.0

This commit is contained in:
Bastien Orivel 2018-02-28 15:12:19 +01:00
parent 9ca18b510f
commit c072829be0
4 changed files with 7 additions and 7 deletions

View file

@ -290,7 +290,7 @@ impl StreamedResponse {
let decoder = {
if let Some(ref encoding) = response.headers.get::<ContentEncoding>().cloned() {
if encoding.contains(&Encoding::Gzip) {
Decoder::Gzip(GzDecoder::new(response)?)
Decoder::Gzip(GzDecoder::new(response))
}
else if encoding.contains(&Encoding::Deflate) {
Decoder::Deflate(DeflateDecoder::new(response))