diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-12 14:53:37 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-12 14:53:37 +0000 |
commit | c39beb55593cd08abe67eddd902627d6171cb245 (patch) | |
tree | 724bf5c8e6ed8ccbb25e2f485139fdf794cd0f6b | |
parent | Pyflakes (diff) | |
download | synapse-c39beb55593cd08abe67eddd902627d6171cb245.tar.xz |
Store json as UTF-8 and not bytes
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 3bc3622169..079ddac605 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -168,7 +168,7 @@ class DataStore(RoomMemberStore, RoomStore, values={ "event_id": event.event_id, "room_id": event.room_id, - "json": encode_canonical_json(event_dict), + "json": encode_canonical_json(event_dict).decode("UTF-8"), }, or_replace=True, ) |