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

Add AVIF MIME type support to mimetype definitions
This commit is contained in:
AUTOMATIC1111 2024-06-08 11:36:21 +03:00 committed by GitHub
commit debc6dddeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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