Skip to content

Commit

Permalink
refactor: update ECMA script types
Browse files Browse the repository at this point in the history
Some ECMA script mime types were obsoleted in favor of
'text/javascript'. For a full reference check RFC 9239
(https://www.ietf.org/rfc/rfc9239.pdf).
  • Loading branch information
Christoph FRITZ authored and abonander committed Dec 12, 2023
1 parent 985fc5d commit 1ae1167
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/mime_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[
("ecelp4800", &["audio/vnd.nuera.ecelp4800"]),
("ecelp7470", &["audio/vnd.nuera.ecelp7470"]),
("ecelp9600", &["audio/vnd.nuera.ecelp9600"]),
("ecma", &["application/ecmascript"]),
("ecma", &["text/javascript"]),
("edm", &["application/vnd.novadigm.edm"]),
("edx", &["application/vnd.novadigm.edx"]),
("efif", &["application/vnd.picsel"]),
Expand All @@ -329,7 +329,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[
("eot", &["application/vnd.ms-fontobject"]),
("eps", &["application/postscript"]),
("epub", &["application/epub+zip"]),
("es", &["application/ecmascript"]),
("es", &["text/javascript"]),
("es3", &["application/vnd.eszigno3+xml"]),
("esa", &["application/vnd.osgi.subsystem"]),
("esf", &["application/vnd.epson.esf"]),
Expand Down Expand Up @@ -559,13 +559,13 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[
("jpgv", &["video/jpeg"]),
("jpm", &["image/jpm"]),
("jpx", &["image/jpx"]),
("js", &["application/javascript"]),
("jsm", &["application/javascript"]),
("js", &["text/javascript"]),
("jsm", &["text/javascript"]),
("json", &["application/json"]),
("json5", &["application/json5"]),
("jsonld", &["application/ld+json"]),
("jsonml", &["application/jsonml+json"]),
("jsx", &["text/jscript"]),
("jsx", &["text/javascript"]),
("jsxbin", &["text/plain"]),
("kar", &["audio/midi"]),
("karbon", &["application/vnd.kde.karbon"]),
Expand Down

0 comments on commit 1ae1167

Please sign in to comment.