Skip to content

Commit

Permalink
Fix content encoding for woff2 (#1859)
Browse files Browse the repository at this point in the history
Due to a copy/paste error, the non-gzipped woff2 assets were served as
gzipped assets.
  • Loading branch information
nmattia authored Sep 8, 2023
1 parent 501bdda commit 1b29ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internet_identity/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ fn collect_assets_from_dir(dir: &Dir) -> Vec<(String, Vec<u8>, ContentEncoding,
"png" => (file_bytes, ContentEncoding::Identity, ContentType::PNG),
"svg" => (file_bytes, ContentEncoding::Identity, ContentType::SVG),
"webp" => (file_bytes, ContentEncoding::Identity, ContentType::WEBP),
"woff2" => (file_bytes, ContentEncoding::GZip, ContentType::WOFF2),
"woff2" => (file_bytes, ContentEncoding::Identity, ContentType::WOFF2),
"woff2.gz" => (file_bytes, ContentEncoding::GZip, ContentType::WOFF2),
ext => panic!(
"Unknown asset type '{}' for asset '{}'",
Expand Down

0 comments on commit 1b29ec6

Please sign in to comment.