mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Workaround incorrect ZIP mime types
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user