mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-06-03 04:27:25 +08:00
Merge 6a47c7344c into 01799f8cac
This commit is contained in:
commit
adc30861d1
@ -62,6 +62,10 @@ def reject_simple_form_post(request) -> Optional[web.Response]:
|
|||||||
strips parameters), so a ``multipart/form-data; boundary=----X`` header
|
strips parameters), so a ``multipart/form-data; boundary=----X`` header
|
||||||
is compared as ``multipart/form-data``.
|
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:
|
if request.content_type in _SIMPLE_FORM_CONTENT_TYPES:
|
||||||
return web.Response(
|
return web.Response(
|
||||||
status=400,
|
status=400,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user