We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447ef83 commit ce85fa5Copy full SHA for ce85fa5
src/TestHTTPServer.zig
@@ -100,6 +100,11 @@ fn getContentType(file_path: []const u8) []const u8 {
100
return "application/json";
101
}
102
103
+ if (std.mem.endsWith(u8, file_path, ".mjs")) {
104
+ // mjs are ECMAScript modules
105
+ return "application/json";
106
+ }
107
+
108
if (std.mem.endsWith(u8, file_path, ".html")) {
109
return "text/html";
110
0 commit comments