Brotli seems to cause issues, disable it
This commit is contained in:
parent
f7a5b29b71
commit
e3a030ceaf
1 changed files with 5 additions and 5 deletions
10
src/https.rs
10
src/https.rs
|
@ -190,7 +190,7 @@ async fn try_compress(
|
||||||
.1;
|
.1;
|
||||||
let preference = [
|
let preference = [
|
||||||
Encoding::Zstd,
|
Encoding::Zstd,
|
||||||
Encoding::Brotli,
|
//Encoding::Brotli,
|
||||||
Encoding::Deflate,
|
Encoding::Deflate,
|
||||||
Encoding::Gzip,
|
Encoding::Gzip,
|
||||||
];
|
];
|
||||||
|
@ -269,10 +269,10 @@ async fn try_compress(
|
||||||
.insert(header::CONTENT_ENCODING, "gzip".parse()?);
|
.insert(header::CONTENT_ENCODING, "gzip".parse()?);
|
||||||
Body::wrap_stream(ReaderStream::new(GzipEncoder::new(body_rd)))
|
Body::wrap_stream(ReaderStream::new(GzipEncoder::new(body_rd)))
|
||||||
}
|
}
|
||||||
Encoding::Brotli => {
|
// Encoding::Brotli => {
|
||||||
head.headers.insert(header::CONTENT_ENCODING, "br".parse()?);
|
// head.headers.insert(header::CONTENT_ENCODING, "br".parse()?);
|
||||||
Body::wrap_stream(ReaderStream::new(BrotliEncoder::new(body_rd)))
|
// Body::wrap_stream(ReaderStream::new(BrotliEncoder::new(body_rd)))
|
||||||
}
|
// }
|
||||||
Encoding::Deflate => {
|
Encoding::Deflate => {
|
||||||
head.headers
|
head.headers
|
||||||
.insert(header::CONTENT_ENCODING, "deflate".parse()?);
|
.insert(header::CONTENT_ENCODING, "deflate".parse()?);
|
||||||
|
|
Loading…
Reference in a new issue