Fixed a typo that prevented the program from running
This commit is contained in:
Jesse Gonyou 2025-06-01 22:21:23 -04:00 committed by GitHub
parent 08c5d5b65d
commit 104f138343
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -477,7 +477,7 @@ class PromptServer():
content_type = mimetypes.guess_type(filename)[0] or 'application/octet-stream' content_type = mimetypes.guess_type(filename)[0] or 'application/octet-stream'
# For security, force certain mimetypes to download instead of display # 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 content_type = 'application/octet-stream' # Forces download
return web.FileResponse( return web.FileResponse(