From bdc0f6d56b8f01bc3c56d4976ec2ca0691254c46 Mon Sep 17 00:00:00 2001 From: Kresten Date: Thu, 4 Oct 2018 13:54:11 +0200 Subject: [PATCH] Added "text/calendar" as a legal mimetype for .ics files. Files are failing this test, and "text/calendar" seems to be the correct one from https://tools.ietf.org/html/rfc5545 --- src/plugins/lua/mime_types.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua index 7e383724b..e8ce709da 100644 --- a/src/plugins/lua/mime_types.lua +++ b/src/plugins/lua/mime_types.lua @@ -376,7 +376,7 @@ local full_extensions_map = { {"hxx", "text/plain"}, {"i", "text/plain"}, {"ico", "image/x-icon"}, - {"ics", "application/octet-stream"}, + {"ics", {"text/calendar", "application/octet-stream"}}, {"idl", "text/plain"}, {"ief", "image/ief"}, {"iii", "application/x-iphone"}, -- 2.39.5