mirror of https://github.com/M66B/FairEmail.git
Workaround for incorrect audio/mid mime type
This commit is contained in:
parent
c06518608b
commit
52851a8e52
|
@ -182,9 +182,6 @@ public class EntityAttachment {
|
||||||
if ("docx".equals(extension))
|
if ("docx".equals(extension))
|
||||||
return "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
return "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
||||||
|
|
||||||
if ("mid".equals(extension) || "midi".equals(extension))
|
|
||||||
return "audio/midi";
|
|
||||||
|
|
||||||
if ("xls".equals(extension))
|
if ("xls".equals(extension))
|
||||||
return "application/vnd.ms-excel";
|
return "application/vnd.ms-excel";
|
||||||
|
|
||||||
|
@ -207,6 +204,9 @@ public class EntityAttachment {
|
||||||
if ("text/plain".equals(type) && "ovpn".equals(extension))
|
if ("text/plain".equals(type) && "ovpn".equals(extension))
|
||||||
return "application/x-openvpn-profile";
|
return "application/x-openvpn-profile";
|
||||||
|
|
||||||
|
if ("audio/mid".equals(type))
|
||||||
|
return "audio/midi";
|
||||||
|
|
||||||
// https://www.rfc-editor.org/rfc/rfc3555.txt
|
// https://www.rfc-editor.org/rfc/rfc3555.txt
|
||||||
if ("video/jpeg".equals(type))
|
if ("video/jpeg".equals(type))
|
||||||
return "image/jpeg";
|
return "image/jpeg";
|
||||||
|
|
Loading…
Reference in New Issue