]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add Windows Metafile MIME types (RFC 7903) 3684/head
authormoisseev <moiseev@mezonplus.ru>
Tue, 23 Mar 2021 09:33:16 +0000 (12:33 +0300)
committermoisseev <moiseev@mezonplus.ru>
Tue, 23 Mar 2021 09:33:16 +0000 (12:33 +0300)
conf/maps.d/mime_types.inc
lualib/lua_mime_types.lua

index d71fa0d90fb1d4ef433649d159709f28c954ed1c..c4f158d8a2b96f9f3362e28e30b3992ccebbe206 100644 (file)
@@ -1341,6 +1341,8 @@ image/vnd.tencent.tap 0
 image/vnd.valve.source.texture 0
 image/vnd.xiff 0
 image/vnd.zbrush.pcx 0
+image/wmf 0
+image/x-wmf 0
 message/CPIM 0
 message/delivery-status 0
 message/disposition-notification 0
index 998d004cf04863cb091e9bde9cd8144cc6436ec6..a03c607d7c9683c84d4b221c9f2da94c683ce455 100644 (file)
@@ -575,7 +575,7 @@ exports.full_extensions_map = {
     {"wm", "video/x-ms-wm"},
     {"wma", "audio/x-ms-wma"},
     {"wmd", "application/x-ms-wmd"},
-    {"wmf", "application/x-msmetafile"},
+    {"wmf", {"application/x-msmetafile", "image/wmf", "image/x-wmf"}},
     {"wml", "text/vnd.wap.wml"},
     {"wmlc", "application/vnd.wap.wmlc"},
     {"wmls", "text/vnd.wap.wmlscript"},
@@ -742,4 +742,4 @@ exports.reversed_extensions_map = {
     ["video/x-msvideo"] = "avi",
 }
 
-return exports
\ No newline at end of file
+return exports