Commit debc6ddd authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #15739 from LoganBooker/LoganBooker-AVIF-mimetype-patch

Add AVIF MIME type support to mimetype definitions
parents 1a7ffa2c f7e349ce
...@@ -41,6 +41,7 @@ mimetypes.add_type('application/javascript', '.js') ...@@ -41,6 +41,7 @@ mimetypes.add_type('application/javascript', '.js')
# Likewise, add explicit content-type header for certain missing image types # Likewise, add explicit content-type header for certain missing image types
mimetypes.add_type('image/webp', '.webp') mimetypes.add_type('image/webp', '.webp')
mimetypes.add_type('image/avif', '.avif')
if not cmd_opts.share and not cmd_opts.listen: if not cmd_opts.share and not cmd_opts.listen:
# fix gradio phoning home # 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