diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-11-18 17:17:57 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-11-18 17:17:57 +0000 |
commit | db7e8b56199a1aee738501f37ece939a3f479497 (patch) | |
tree | 2a455f11dab1991b570ee711aa2c8919ab72d258 /synapse/federation/transport.py | |
parent | Remove unused variable (diff) | |
download | synapse-db7e8b56199a1aee738501f37ece939a3f479497.tar.xz |
SYN-141: Decode the query params as UTF-8
Diffstat (limited to '')
-rw-r--r-- | synapse/federation/transport.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/federation/transport.py b/synapse/federation/transport.py index 95c40c6c1b..b72d7b24df 100644 --- a/synapse/federation/transport.py +++ b/synapse/federation/transport.py @@ -428,7 +428,8 @@ class TransportLayer(object): self._with_authentication( lambda origin, content, query, query_type: handler.on_query_request( - query_type, {k: v[0] for k, v in query.items()} + query_type, + {k: v[0].decode("utf-8") for k, v in query.items()} ) ) ) |