From e3a030ceafb960ac378edbb8be9659c964ead0d8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 10 Dec 2021 00:03:34 +0100 Subject: [PATCH] Brotli seems to cause issues, disable it --- src/https.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/https.rs b/src/https.rs index f7562ff..09234ff 100644 --- a/src/https.rs +++ b/src/https.rs @@ -190,7 +190,7 @@ async fn try_compress( .1; let preference = [ Encoding::Zstd, - Encoding::Brotli, + //Encoding::Brotli, Encoding::Deflate, Encoding::Gzip, ]; @@ -269,10 +269,10 @@ async fn try_compress( .insert(header::CONTENT_ENCODING, "gzip".parse()?); Body::wrap_stream(ReaderStream::new(GzipEncoder::new(body_rd))) } - Encoding::Brotli => { - head.headers.insert(header::CONTENT_ENCODING, "br".parse()?); - Body::wrap_stream(ReaderStream::new(BrotliEncoder::new(body_rd))) - } + // Encoding::Brotli => { + // head.headers.insert(header::CONTENT_ENCODING, "br".parse()?); + // Body::wrap_stream(ReaderStream::new(BrotliEncoder::new(body_rd))) + // } Encoding::Deflate => { head.headers .insert(header::CONTENT_ENCODING, "deflate".parse()?);