Update JavaScript media type to 'text/javascript'.

This reflects RFC9239 and the IANA registry updates.
This commit is contained in:
Sergio Benitez 2023-03-25 08:56:58 -07:00
parent 5f232d147c
commit 999787e3bb
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ macro_rules! known_media_types {
JSON (is_json): "JSON", "application", "json",
MsgPack (is_msgpack): "MsgPack", "application", "msgpack",
Form (is_form): "forms", "application", "x-www-form-urlencoded",
JavaScript (is_javascript): "JavaScript", "application", "javascript",
JavaScript (is_javascript): "JavaScript", "text", "javascript",
CSS (is_css): "CSS", "text", "css" ; "charset" => "utf-8",
FormData (is_form_data): "multipart form data", "multipart", "form-data",
XML (is_xml): "XML", "text", "xml" ; "charset" => "utf-8",