mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update flate2 to 1.0
This commit is contained in:
parent
9ca18b510f
commit
c072829be0
4 changed files with 7 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue