mirror of
https://github.com/actix/actix-web.git
synced 2025-06-05 14:48:50 +00:00
fix brotli encoding buffer size
This commit is contained in:
parent
232a14dc8b
commit
8459f566a8
1 changed files with 3 additions and 3 deletions
|
@ -391,7 +391,7 @@ impl ContentEncoder {
|
||||||
fn new_brotli_compressor() -> Box<brotli::CompressorWriter<Writer>> {
|
fn new_brotli_compressor() -> Box<brotli::CompressorWriter<Writer>> {
|
||||||
Box::new(brotli::CompressorWriter::new(
|
Box::new(brotli::CompressorWriter::new(
|
||||||
Writer::new(),
|
Writer::new(),
|
||||||
8 * 1024, // 32 KiB buffer
|
32 * 1024, // 32 KiB buffer
|
||||||
3, // BROTLI_PARAM_QUALITY
|
3, // BROTLI_PARAM_QUALITY
|
||||||
22, // BROTLI_PARAM_LGWIN
|
22, // BROTLI_PARAM_LGWIN
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue