summaryrefslogtreecommitdiff
path: root/ext/http
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2024-11-12 12:10:41 +0530
committerGitHub <noreply@github.com>2024-11-12 12:10:41 +0530
commit90236d67c591d4344a9ca0e5d23a4906d08308e5 (patch)
tree0c170b88385afbb5906f7ee88653d64886712239 /ext/http
parentb955d037406828c2ab74966dc9a6f3f882854982 (diff)
fix(ext/http): prefer brotli for `accept-encoding: gzip, deflate, br, zstd` (#26814)
Closes https://github.com/denoland/deno/issues/26813
Diffstat (limited to 'ext/http')
-rw-r--r--ext/http/http_next.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs
index c55e86835..1251f00cc 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,
_ => (),