mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Auto merge of #12050 - johannhof:brotli, r=jdm
Switch to a faster Brotli crate <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #11933. <!-- Either: --> - [x] These changes do not require tests (I hope) because no new behavior was introduced <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12050) <!-- Reviewable:end -->
This commit is contained in:
commit
c8b048e368
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