mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
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:
parent
84465e7768
commit
bc496b08e7
9 changed files with 54 additions and 27 deletions
|
@ -1313,7 +1313,7 @@ fn test_fetch_with_devtools() {
|
|||
|
||||
headers.insert(
|
||||
header::ACCEPT_ENCODING,
|
||||
HeaderValue::from_static("gzip, deflate, br"),
|
||||
HeaderValue::from_static("gzip, deflate, br, zstd"),
|
||||
);
|
||||
|
||||
// Append fetch metadata headers
|
||||
|
|
|
@ -189,7 +189,7 @@ fn test_check_default_headers_loaded_in_every_request() {
|
|||
|
||||
headers.insert(
|
||||
header::ACCEPT_ENCODING,
|
||||
HeaderValue::from_static("gzip, deflate, br"),
|
||||
HeaderValue::from_static("gzip, deflate, br, zstd"),
|
||||
);
|
||||
|
||||
headers.typed_insert(Host::from(
|
||||
|
@ -369,7 +369,7 @@ fn test_request_and_response_data_with_network_messages() {
|
|||
|
||||
headers.insert(
|
||||
header::ACCEPT_ENCODING,
|
||||
HeaderValue::from_static("gzip, deflate, br"),
|
||||
HeaderValue::from_static("gzip, deflate, br, zstd"),
|
||||
);
|
||||
|
||||
// Append fetch metadata headers
|
||||
|
@ -1128,7 +1128,7 @@ fn test_load_sets_default_accept_encoding_to_gzip_and_deflate() {
|
|||
.unwrap()
|
||||
.to_str()
|
||||
.unwrap(),
|
||||
"gzip, deflate, br"
|
||||
"gzip, deflate, br, zstd"
|
||||
);
|
||||
*response.body_mut() = make_body(b"Yay!".to_vec());
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue