Skip to content

Commit

Permalink
Add back alt js mime for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hansen committed Jul 13, 2024
1 parent b55342e commit 3266e4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion memory-serve-macros/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const COMPRESS_TYPES: &[&str] = &[
"text/css",
"application/json",
"text/javascript",
"text/javascript",
"application/javascript",
"application/xml",
"text/xml",
"image/svg+xml",
Expand Down
2 changes: 1 addition & 1 deletion memory-serve/src/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const COMPRESS_TYPES: &[&str] = &[
"text/css",
"application/json",
"text/javascript",
"text/javascript",
"application/javascript",
"application/xml",
"text/xml",
"image/svg+xml",
Expand Down
1 change: 1 addition & 0 deletions memory-serve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ mod tests {
"image/jpeg",
"text/css",
"text/javascript",
"application/javascript",
"image/svg+xml",
"text/html"
]
Expand Down

0 comments on commit 3266e4e

Please sign in to comment.