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:
parent
b425a2ca98
commit
205ef77570
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue