diff options
author | Satya Rohith <me@satyarohith.com> | 2024-11-12 12:10:41 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 12:10:41 +0530 |
commit | 90236d67c591d4344a9ca0e5d23a4906d08308e5 (patch) | |
tree | 0c170b88385afbb5906f7ee88653d64886712239 /ext | |
parent | b955d037406828c2ab74966dc9a6f3f882854982 (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')
-rw-r--r-- | ext/http/http_next.rs | 1 |
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, _ => (), |