added .wav file workarounds

pull/213/head
M66B 1 year ago
parent 3ffce527cb
commit 747414a60b

@ -231,7 +231,8 @@ public class EntityAttachment {
if ("audio/mid".equals(type))
return "audio/midi";
if ("audio-x/wav".equals(type))
if ("audio/x-wav".equals(type) ||
"audio-x/wav".equals(type))
return "audio/wav";
// https://www.rfc-editor.org/rfc/rfc3555.txt
@ -321,6 +322,9 @@ public class EntityAttachment {
if ("ogg".equals(extension))
return "application/ogg";
if ("wav".equals(extension))
return "audio/wav";
// Images
if ("avif".equals(extension))

Loading…
Cancel
Save