From 104f13834353df720c79a20bbc622334968d440f Mon Sep 17 00:00:00 2001 From: Jesse Gonyou <168374102+jessegonyou@users.noreply.github.com> Date: Sun, 1 Jun 2025 22:21:23 -0400 Subject: [PATCH] Fix typo Fixed a typo that prevented the program from running --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 85aafbb36..aca67a2e7 100644 --- a/server.py +++ b/server.py @@ -477,7 +477,7 @@ class PromptServer(): content_type = mimetypes.guess_type(filename)[0] or 'application/octet-stream' # For security, force certain mimetypes to download instead of display - if or content_type in {'text/html', 'text/html-sandboxed', 'application/xhtml+xml', 'text/javascript', 'text/css'}: + if content_type in {'text/html', 'text/html-sandboxed', 'application/xhtml+xml', 'text/javascript', 'text/css'}: content_type = 'application/octet-stream' # Forces download return web.FileResponse(