summary refs log tree commit diff
path: root/synapse/http/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-10-30 12:08:09 +0000
committerErik Johnston <erik@matrix.org>2020-10-30 12:08:09 +0000
commit1ff3bc332ac5bd7a3c9ac4fcbcbf1692111f33d1 (patch)
tree9abed3402979f5105af3cb7ef739e8646e13f148 /synapse/http/server.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentImplement and use an @lru_cache decorator (#8595) (diff)
downloadsynapse-1ff3bc332ac5bd7a3c9ac4fcbcbf1692111f33d1.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/http/server.py')
-rw-r--r--synapse/http/server.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py

index 65dbd339ac..c0919f8cb7 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py
@@ -35,8 +35,6 @@ from twisted.web.server import NOT_DONE_YET, Request from twisted.web.static import File, NoRangeStaticProducer from twisted.web.util import redirectTo -import synapse.events -import synapse.metrics from synapse.api.errors import ( CodeMessageException, Codes, @@ -620,7 +618,7 @@ def respond_with_json( if pretty_print: encoder = iterencode_pretty_printed_json else: - if canonical_json or synapse.events.USE_FROZEN_DICTS: + if canonical_json: encoder = iterencode_canonical_json else: encoder = _encode_json_bytes