Skip to content

Commit

Permalink
Add content type recognition for .mjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaliumhexacyanoferrat committed Jan 3, 2024
1 parent 542af86 commit 1c45b58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/Basics/CoreExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 1c45b58

Please sign in to comment.