From db7e8b56199a1aee738501f37ece939a3f479497 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 18 Nov 2014 17:17:57 +0000 Subject: [PATCH] SYN-141: Decode the query params as UTF-8 --- synapse/federation/transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synapse/federation/transport.py b/synapse/federation/transport.py index 95c40c6c1..b72d7b24d 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()} ) ) )