diff options
author | Erik Johnston <erik@matrix.org> | 2018-03-15 23:38:43 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-03-16 00:27:09 +0000 |
commit | a8ce159be43560e9aea8f3be65110eea49d1f50e (patch) | |
tree | f0efe7d92e993db0ac02cfb0e10d91329456bbab /synapse/http | |
parent | Merge pull request #3003 from matrix-org/rav/fix_contributing (diff) | |
download | synapse-a8ce159be43560e9aea8f3be65110eea49d1f50e.tar.xz |
Replace some ujson with simplejson to make it work
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/server.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py index 4b567215c8..3c7a0ef97a 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -38,6 +38,7 @@ import collections import logging import urllib import ujson +import simplejson logger = logging.getLogger(__name__) @@ -462,7 +463,7 @@ def respond_with_json(request, code, json_object, send_cors=False, json_bytes = encode_canonical_json(json_object) else: # ujson doesn't like frozen_dicts. - json_bytes = ujson.dumps(json_object, ensure_ascii=False) + json_bytes = simplejson.dumps(json_object) return respond_with_json_bytes( request, code, json_bytes, |