From 93fad43258d148d74d384b68af20bca49f940294 Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Fri, 29 Dec 2023 11:49:10 +0100 Subject: [PATCH] fix(testing): fix a regression wrt passing json to simulate_request --- falcon/testing/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/falcon/testing/client.py b/falcon/testing/client.py index 29f28858b..37d480176 100644 --- a/falcon/testing/client.py +++ b/falcon/testing/client.py @@ -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