From 43fcc33524f1cf013e90a58da32715b753d0817b Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sat, 3 Mar 2018 21:31:51 +0300 Subject: [PATCH] [Minor] Add more non-standard CTs to full_extensions_map --- src/plugins/lua/mime_types.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 6c4ceec73..24a478b9a 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -308,7 +308,7 @@ local full_extensions_map = { {"dlm", "text/dlm"}, {"doc", "application/msword"}, {"docm", "application/vnd.ms-word.document.macroEnabled.12"}, - {"docx", {"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword"}}, + {"docx", {"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/msword", "application/vnd.ms-word.document.12", "application/octet-stream"}}, {"dot", "application/msword"}, {"dotm", "application/vnd.ms-word.template.macroEnabled.12"}, {"dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"}, @@ -584,7 +584,7 @@ local full_extensions_map = { {"qxd", "application/octet-stream"}, {"ra", "audio/x-pn-realaudio"}, {"ram", "audio/x-pn-realaudio"}, - {"rar", {"application/x-rar-compressed", "application/octet-stream"}}, + {"rar", {"application/x-rar-compressed", "application/x-rar", "application/octet-stream"}}, {"ras", "image/x-cmu-raster"}, {"rat", "application/rat-file"}, {"rc", "text/plain"}, @@ -668,7 +668,7 @@ local full_extensions_map = { {"tgz", "application/x-compressed"}, {"thmx", "application/vnd.ms-officetheme"}, {"thn", "application/octet-stream"}, - {"tif", "image/tiff"}, + {"tif", {"image/tiff", "application/octet-stream"}}, {"tiff", "image/tiff"}, {"tlh", "text/plain"}, {"tli", "text/plain"}, @@ -690,7 +690,7 @@ local full_extensions_map = { {"vbk", "video/mpeg"}, {"vbproj", "text/plain"}, {"vbs", "text/vbscript"}, - {"vcf", "text/x-vcard"}, + {"vcf", {"text/x-vcard", "text/vcard"}}, {"vcproj", "application/xml"}, {"vcs", "text/plain"}, {"vcxproj", "application/xml"}, -- 2.39.5