Extra mime type

main
Bob Mottram 2024-02-05 19:39:57 +00:00
parent 3716a42132
commit dbddbb4119
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ def set_profile_image(base_dir: str, http_prefix: str,
media_type = 'image/' + ext + '+xml'
elif ext == 'jpg':
media_type = 'image/jpeg'
elif ext == 'ico':
media_type = 'image/x-icon'
icon_filename = icon_filename_base + '.' + ext
profile_filename = acct_handle_dir(base_dir, handle) + '/' + icon_filename