diff options
author | Erik Johnston <erik@matrix.org> | 2019-08-23 14:52:11 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-08-23 15:36:28 +0100 |
commit | 7af5a63063aa69888ab59ee997cc3d1459d25af4 (patch) | |
tree | 7f6a00a6e650959822add53dcffc6e85cd643f41 /synapse/rest | |
parent | Newsfile (diff) | |
download | synapse-7af5a63063aa69888ab59ee997cc3d1459d25af4.tar.xz |
Fixup review comments
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/key/v2/remote_key_resource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/key/v2/remote_key_resource.py b/synapse/rest/key/v2/remote_key_resource.py index f3398c9523..55580bc59e 100644 --- a/synapse/rest/key/v2/remote_key_resource.py +++ b/synapse/rest/key/v2/remote_key_resource.py @@ -14,7 +14,7 @@ import logging -from canonicaljson import json +from canonicaljson import encode_canonical_json, json from signedjson.sign import sign_json from twisted.internet import defer @@ -227,4 +227,4 @@ class RemoteKey(DirectServeResource): results = {"server_keys": signed_keys} - respond_with_json_bytes(request, 200, json.dumps(results).encode("utf-8")) + respond_with_json_bytes(request, 200, encode_canonical_json(results)) |