Skip to content

Commit

Permalink
Merge pull request #1102 from xzzy/master2
Browse files Browse the repository at this point in the history
Fix for heic extensions
  • Loading branch information
xzzy authored Oct 24, 2024
2 parents f3313f0 + 9e9c990 commit aa982e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def getAppFile(request,file_id,extension):
return HttpResponse(the_data, content_type="application/vnd.ms-outlook")
if extension == 'eml':
return HttpResponse(the_data, content_type="application/vnd.ms-outlook")

if extension == 'heic':
return HttpResponse(the_data, content_type="image/heic")

return HttpResponse(the_data, content_type=mimetypes.types_map['.'+str(extension)])
else:
Expand Down

0 comments on commit aa982e1

Please sign in to comment.