mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00: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
@ -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 New Issue
Block a user