Skip to content

Commit 90236d6

Browse files
authored
fix(ext/http): prefer brotli for accept-encoding: gzip, deflate, br, zstd (#26814)
Closes #26813
1 parent b955d03 commit 90236d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/http/http_next.rs

+1
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ fn is_request_compressible(
564564
match accept_encoding.to_str() {
565565
// Firefox and Chrome send this -- no need to parse
566566
Ok("gzip, deflate, br") => return Compression::Brotli,
567+
Ok("gzip, deflate, br, zstd") => return Compression::Brotli,
567568
Ok("gzip") => return Compression::GZip,
568569
Ok("br") => return Compression::Brotli,
569570
_ => (),

0 commit comments

Comments
 (0)