From 1c45b58c9fa2aedbf6597c9f218ca068fb40a4fc Mon Sep 17 00:00:00 2001 From: Kaliumhexacyanoferrat Date: Wed, 3 Jan 2024 15:05:14 +0100 Subject: [PATCH] Add content type recognition for .mjs files --- Modules/Basics/CoreExtensions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Basics/CoreExtensions.cs b/Modules/Basics/CoreExtensions.cs index 83005414..5a9e0d1b 100644 --- a/Modules/Basics/CoreExtensions.cs +++ b/Modules/Basics/CoreExtensions.cs @@ -88,6 +88,7 @@ public static bool HasType(this IRequest request, params RequestMethod[] methods { "woff2", ContentType.FontWoff2 }, // Scripts { "js", ContentType.ApplicationJavaScript }, + { "mjs", ContentType.ApplicationJavaScript }, // Images { "ico", ContentType.ImageIcon }, { "gif", ContentType.ImageGif },