1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -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:
Satya Rohith 2024-11-12 12:10:41 +05:30 committed by GitHub
parent b955d03740
commit 90236d67c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
_ => (),