aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-10 00:03:34 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-10 00:10:00 +0100
commite3a030ceafb960ac378edbb8be9659c964ead0d8 (patch)
tree70d165e1e09385c0b42d7aa2221c391027e81dd1
parentf7a5b29b719778974a6791d03b8c5eb2e5836355 (diff)
downloadtricot-e3a030ceafb960ac378edbb8be9659c964ead0d8.tar.gz
tricot-e3a030ceafb960ac378edbb8be9659c964ead0d8.zip
Brotli seems to cause issues, disable itdocker-24
-rw-r--r--src/https.rs10
1 files 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()?);