mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-26 11:52:42 -08:00
Add AVIF MIME type support to mimetype definitions
AVIF images will open, rather than download, as the default behaviour.
This commit is contained in:
parent
ddb28b33a3
commit
f7e349cea4
1 changed files with 1 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ mimetypes.add_type('application/javascript', '.js')
|
|||
|
||||
# Likewise, add explicit content-type header for certain missing image types
|
||||
mimetypes.add_type('image/webp', '.webp')
|
||||
mimetypes.add_type('image/avif', '.avif')
|
||||
|
||||
if not cmd_opts.share and not cmd_opts.listen:
|
||||
# fix gradio phoning home
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue