Recognize text/plain ICS as text/calendar

pull/172/head
M66B 5 years ago
parent cfe47c7beb
commit b6b1768461

@ -181,12 +181,13 @@ public class EntityAttachment {
if ("eml".equals(extension))
return "message/rfc822";
if ("text/plain".equals(type) &&
"ovpn".equals(extension))
if ("text/plain".equals(type) && "ics".equals(extension))
return "text/calendar";
if ("text/plain".equals(type) && "ovpn".equals(extension))
return "application/x-openvpn-profile";
if ("application/zip".equals(type) ||
"application/octet-stream".equals(type)) {
if ("application/zip".equals(type) || "application/octet-stream".equals(type)) {
if ("log".equalsIgnoreCase(extension))
return "text/plain";

Loading…
Cancel
Save