1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 07:01:05 +00:00

Workaround incorrect ZIP mime types

This commit is contained in:
M66B 2022-01-18 15:02:30 +01:00
parent b425a2ca98
commit 205ef77570

View file

@ -198,6 +198,10 @@ public class EntityAttachment {
if ("pdf".equals(extension))
return "application/pdf";
if ("zip".equals(extension) ||
"application/x-zip-compressed".equals(type))
return "application/zip"; //
if ("text/plain".equals(type) &&
("ics".equals(extension) || "vcs".equals(extension)))
return "text/calendar";