Skip to content

Commit

Permalink
fix(testing): fix a regression wrt passing json to simulate_request
Browse files Browse the repository at this point in the history
  • Loading branch information
vytas7 committed Dec 29, 2023
1 parent 6845e5a commit 93fad43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falcon/testing/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2238,7 +2238,7 @@ def _prepare_sim_args(
headers = headers or {}
headers['Content-Type'] = content_type

elif json is not None:
if json is not None:
body = json_module.dumps(json, ensure_ascii=False)
headers = headers or {}
headers['Content-Type'] = MEDIA_JSON
Expand Down

0 comments on commit 93fad43

Please sign in to comment.