AttachmentValidator: fix_media_type/1 fallback to application/octet-stream

This commit is contained in:
Haelwenn (lanodan) Monnier 2022-07-22 20:22:44 +02:00
parent 09e0304b9c
commit eba1666575
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def url_changeset(struct, data) do
end end
def fix_media_type(data) do def fix_media_type(data) do
Map.put_new(data, "mediaType", data["mimeType"]) Map.put_new(data, "mediaType", data["mimeType"] || "application/octet-stream")
end end
defp handle_href(href, mediaType, data) do defp handle_href(href, mediaType, data) do