Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
[REF] refactor checking of json_payload
Signed-off-by: Red <redickbutay02@gmail.com>
  • Loading branch information
reichie020212 committed Jan 30, 2026
commit d604986cd82180083eb2243b0bda40d7595ae44a
2 changes: 1 addition & 1 deletion spp_api/controllers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def wrapper(self, *args, **kwargs):
# silent=True prevents Werkzeug from raising a 400 error on bad JSON
json_payload = request.httprequest.get_json(silent=True)

if json_payload:
if json_payload is not None:
request_data = json.dumps(json_payload)
else:
# Fallback to raw data if not JSON
Expand Down
Loading