1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-02 21:39:26 +00:00

fix brotli encoding buffer size

This commit is contained in:
Rob Ede 2022-01-21 21:17:07 +00:00
parent 232a14dc8b
commit 8459f566a8
No known key found for this signature in database
GPG key ID: 97C636207D3EF933

View file

@ -391,9 +391,9 @@ impl ContentEncoder {
fn new_brotli_compressor() -> Box<brotli::CompressorWriter<Writer>> {
Box::new(brotli::CompressorWriter::new(
Writer::new(),
8 * 1024, // 32 KiB buffer
3, // BROTLI_PARAM_QUALITY
22, // BROTLI_PARAM_LGWIN
32 * 1024, // 32 KiB buffer
3, // BROTLI_PARAM_QUALITY
22, // BROTLI_PARAM_LGWIN
))
}