Skip to content

Commit f365fa6

Browse files
committed
Change MIME-Type of javascript
* it recommends MIME Type for javascript is `text/javascript` * see RFC 9239
1 parent ebe7e4d commit f365fa6

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)