We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0918452 commit e9606a7Copy full SHA for e9606a7
src/extras/fdefine.extras.c
@@ -108,6 +108,10 @@ const char *cweb_generate_content_type(const char *file_name, bool is_binary) {
108
if (strcmp(lower_ext, "rar") == 0) return "application/vnd.rar";
109
if (strcmp(lower_ext, "7z") == 0) return "application/x-7z-compressed";
110
111
+ // WebAssembly
112
+ if (strcmp(lower_ext, "wasm") == 0) return "application/wasm";
113
+ if (strcmp(lower_ext, "wat") == 0) return "text/plain";
114
+
115
// Microsoft Office
116
if (strcmp(lower_ext, "doc") == 0) return "application/msword";
117
if (strcmp(lower_ext, "docx") == 0) return "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
0 commit comments