You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ISSUE]: Default Content-Type Mismatch in security_parsers.py #394
Description:
In validate_content_type() function in backend/security_parsers.py, the docstring states that allowed_types defaults to ['application/json', 'application/x-www-form-urlencoded'], but the actual code only sets the default to ['application/json']:
# Docstring says (line 28-29):# If None, defaults to ['application/json', 'application/x-www-form-urlencoded']# But actual code (line 38-39):ifallowed_typesisNone:
allowed_types= ['application/json']
This inconsistency can cause confusion and potential security issues when form data is submitted.
Activity
Aditya8369 commentedon May 1, 2026
@devanshi14malhotra please assign me