mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Switch to a faster Brotli crate
This commit is contained in:
parent
0ae07e07e6
commit
7890440d72
4 changed files with 24 additions and 8 deletions
|
@ -570,7 +570,7 @@ impl StreamedResponse {
|
|||
Decoder::Deflate(DeflateDecoder::new(response))
|
||||
}
|
||||
Some(Encoding::EncodingExt(ref ext)) if ext == "br" => {
|
||||
Decoder::Brotli(Decompressor::new(response))
|
||||
Decoder::Brotli(Decompressor::new(response, 1024))
|
||||
}
|
||||
_ => {
|
||||
Decoder::Plain(response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue