From c83fb8a9c26421b769ba2a9a03a9eea76a5b5380 Mon Sep 17 00:00:00 2001 From: christian-byrne Date: Thu, 18 Jul 2024 15:46:35 -0700 Subject: [PATCH] Hardcode webp content-type --- folder_paths.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index 7658853ea..fd59a88ba 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -44,7 +44,9 @@ input_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "inp user_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user") filename_list_cache = {} -extension_mimetypes_cache = {} +extension_mimetypes_cache = { + "webp" : "image", +} if not os.path.exists(input_directory): try: