summary refs log tree commit diff
path: root/synapse/federation/transport.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-11-18 17:17:57 +0000
committerMark Haines <mark.haines@matrix.org>2014-11-18 17:17:57 +0000
commitdb7e8b56199a1aee738501f37ece939a3f479497 (patch)
tree2a455f11dab1991b570ee711aa2c8919ab72d258 /synapse/federation/transport.py
parentRemove unused variable (diff)
downloadsynapse-db7e8b56199a1aee738501f37ece939a3f479497.tar.xz
SYN-141: Decode the query params as UTF-8
Diffstat (limited to '')
-rw-r--r--synapse/federation/transport.py3
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()}
                 )
             )
         )