diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-06 14:52:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-06 14:52:28 +0000 |
commit | 5a38a9c0eea7f8c77585fcb97c51bf0e103e706e (patch) | |
tree | d64557779ff2bab0f5cea1e9bb4bb65bb8283709 | |
parent | 57e8a11d17a6646fdf551320f5f714fba752987a (diff) | |
parent | e866c354626e772779a6307488b7b41f9d101399 (diff) | |
download | stable-diffusion-webui-gfx803-5a38a9c0eea7f8c77585fcb97c51bf0e103e706e.tar.gz stable-diffusion-webui-gfx803-5a38a9c0eea7f8c77585fcb97c51bf0e103e706e.tar.bz2 stable-diffusion-webui-gfx803-5a38a9c0eea7f8c77585fcb97c51bf0e103e706e.zip |
Merge pull request #12369 from diegocr/dev
add explicit content-type header for image/webp
-rw-r--r-- | modules/ui.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index 1af6b4c8..4ffb9b82 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -41,6 +41,9 @@ warnings.filterwarnings("default" if opts.show_gradio_deprecation_warnings else mimetypes.init()
mimetypes.add_type('application/javascript', '.js')
+# Likewise, add explicit content-type header for certain missing image types
+mimetypes.add_type('image/webp', '.webp')
+
if not cmd_opts.share and not cmd_opts.listen:
# fix gradio phoning home
gradio.utils.version_check = lambda: None
|