Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions comfyui_manager/common/manager_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def reject_simple_form_post(request) -> Optional[web.Response]:
strips parameters), so a ``multipart/form-data; boundary=----X`` header
is compared as ``multipart/form-data``.
"""
# Fix for Legacy UI internal calls where request can be None
if request is None:
return None

if request.content_type in _SIMPLE_FORM_CONTENT_TYPES:
return web.Response(
status=400,
Expand Down