http1: use strict brotli, forbid large window

Ticket: 9008

Avoids over-allocation from a few bytes
pull/16213/head
Philippe Antoine 2 months ago committed by Victor Julien
parent 2a85539ef0
commit fefe0a9b8b

@ -744,7 +744,7 @@ struct BrotliBufWriter {
impl BrotliBufWriter {
pub fn new(cursor: BlockingCursor) -> BrotliBufWriter {
BrotliBufWriter {
state: BrotliState::new(
state: BrotliState::new_strict(
HeapAlloc::<u8>::new(0),
HeapAlloc::<u32>::new(0),
HeapAlloc::<HuffmanCode>::new(HuffmanCode { bits: 0, value: 0 }),

Loading…
Cancel
Save