From 90236d67c591d4344a9ca0e5d23a4906d08308e5 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Tue, 12 Nov 2024 12:10:41 +0530 Subject: [PATCH] fix(ext/http): prefer brotli for `accept-encoding: gzip, deflate, br, zstd` (#26814) Closes https://github.com/denoland/deno/issues/26813 --- ext/http/http_next.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs index c55e868352..1251f00cc0 100644 --- a/ext/http/http_next.rs +++ b/ext/http/http_next.rs @@ -564,6 +564,7 @@ fn is_request_compressible( match accept_encoding.to_str() { // Firefox and Chrome send this -- no need to parse Ok("gzip, deflate, br") => return Compression::Brotli, + Ok("gzip, deflate, br, zstd") => return Compression::Brotli, Ok("gzip") => return Compression::GZip, Ok("br") => return Compression::Brotli, _ => (),