Enable the zstd decoder (#36530)

Uses the `zstd` support from `async-compression` to support zstd
Content-Encoding.

Testing: Covered by wpt tests.

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-09-10 07:58:45 -07:00 committed by GitHub
parent 84465e7768
commit bc496b08e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 54 additions and 27 deletions

View file

@ -184,7 +184,7 @@ fn set_default_accept_encoding(headers: &mut HeaderMap) {
// TODO(eijebong): Change this once typed headers are done
headers.insert(
header::ACCEPT_ENCODING,
HeaderValue::from_static("gzip, deflate, br"),
HeaderValue::from_static("gzip, deflate, br, zstd"),
);
}