diff options
Diffstat (limited to 'tests/server.py')
-rw-r--r-- | tests/server.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server.py b/tests/server.py index b9ccde4962..a74fb3fc67 100644 --- a/tests/server.py +++ b/tests/server.py @@ -193,6 +193,8 @@ def make_request( if not path.startswith(b"/"): path = b"/" + path + if isinstance(content, dict): + content = json.dumps(content).encode("utf8") if isinstance(content, str): content = content.encode("utf8") |