diff --git a/memory-serve-macros/src/utils.rs b/memory-serve-macros/src/utils.rs index a86115b..639ca5d 100644 --- a/memory-serve-macros/src/utils.rs +++ b/memory-serve-macros/src/utils.rs @@ -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", diff --git a/memory-serve/src/asset.rs b/memory-serve/src/asset.rs index 0e1189c..74221cf 100644 --- a/memory-serve/src/asset.rs +++ b/memory-serve/src/asset.rs @@ -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",