This commit is contained in:
SAMSECTOR 2026-05-27 16:33:35 +00:00 committed by GitHub
commit adc30861d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,