Browse Source

[Minor] Add Windows Metafile MIME types (RFC 7903)

tags/3.0
moisseev 3 years ago
parent
commit
dafbeb045d
2 changed files with 4 additions and 2 deletions
  1. 2
    0
      conf/maps.d/mime_types.inc
  2. 2
    2
      lualib/lua_mime_types.lua

+ 2
- 0
conf/maps.d/mime_types.inc View 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

+ 2
- 2
lualib/lua_mime_types.lua View 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
return exports

Loading…
Cancel
Save