Skip to content

Commit 8101b90

Browse files
authored
Merge pull request #401 from u5surf/js-mime-rfc9239
Change MIME-Type of javascript
2 parents ebe7e4d + f365fa6 commit 8101b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mime/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ macro_rules! mime_const {
5252
};
5353
}
5454

55-
utf8_mime_const!(JAVASCRIPT, "JavaScript", "application", "javascript");
55+
utf8_mime_const!(JAVASCRIPT, "JavaScript", "text", "javascript");
5656
utf8_mime_const!(CSS, "CSS", "text", "css");
5757
utf8_mime_const!(HTML, "HTML", "text", "html");
5858
utf8_mime_const!(PLAIN, "Plain text", "text", "plain");

0 commit comments

Comments
 (0)