diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-10-28 20:41:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 20:41:42 +0000 |
commit | c97da1e45dd0b1f7f31a7e204a304ec2fba17687 (patch) | |
tree | 977bbdd68c27e2cdfe8906d89d181c53e59d6e80 /synapse/http/server.py | |
parent | Add type hints to application services. (#8655) (diff) | |
parent | remove unused imports (diff) | |
download | synapse-c97da1e45dd0b1f7f31a7e204a304ec2fba17687.tar.xz |
Merge pull request #8678 from matrix-org/rav/fix_frozen_events
Fix serialisation errors when using third-party event rules.
Diffstat (limited to 'synapse/http/server.py')
-rw-r--r-- | synapse/http/server.py | 4 |
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 |