mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(ext/http): prefer brotli for accept-encoding: gzip, deflate, br, zstd
(#26814)
Closes https://github.com/denoland/deno/issues/26813
This commit is contained in:
parent
b955d03740
commit
90236d67c5
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
_ => (),
|
||||
|
|
Loading…
Reference in a new issue