From 999787e3bb3d1e5fc1e1db9757496b2c38c82418 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 25 Mar 2023 08:56:58 -0700 Subject: [PATCH] Update JavaScript media type to 'text/javascript'. This reflects RFC9239 and the IANA registry updates. --- core/http/src/header/known_media_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/src/header/known_media_types.rs b/core/http/src/header/known_media_types.rs index 3656c782..4972044a 100644 --- a/core/http/src/header/known_media_types.rs +++ b/core/http/src/header/known_media_types.rs @@ -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",