Commit f7e349ce authored by LoganBooker's avatar LoganBooker Committed by GitHub

Add AVIF MIME type support to mimetype definitions

AVIF images will open, rather than download, as the default behaviour.
parent ddb28b33
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment