summary refs log tree commit diff
path: root/synapse/federation/transport
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 13:37:49 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 13:39:50 +0100
commit2036503c9e24198df36e2beca1d8aa8571fc125b (patch)
tree67c4a212e4d26b609c6011597c3fee5e6b6c98b2 /synapse/federation/transport
parentMerge commit '3d2acc930' into anoa/dinsic_release_1_31_0 (diff)
parentMerge tag 'v1.28.0rc1' into develop (diff)
downloadsynapse-2036503c9e24198df36e2beca1d8aa8571fc125b.tar.xz
Merge commit 'd9f1dccba' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/federation/transport')
-rw-r--r--synapse/federation/transport/client.py6
-rw-r--r--synapse/federation/transport/server.py7
2 files changed, 8 insertions, 5 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py
index 68d9349a30..3f2b2bf7d5 100644
--- a/synapse/federation/transport/client.py
+++ b/synapse/federation/transport/client.py
@@ -309,7 +309,11 @@ class TransportLayerClient:
 
     @log_function
     async def send_knock_v2(
-        self, destination: str, room_id: str, event_id: str, content: JsonDict,
+        self,
+        destination: str,
+        room_id: str,
+        event_id: str,
+        content: JsonDict,
     ) -> JsonDict:
         """
         Sends a signed knock membership event to a remote server. This is the second
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index 8d89074c5a..963704d0c2 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -486,10 +486,9 @@ class FederationQueryServlet(BaseFederationServlet):
 
     # This is when we receive a server-server Query
     async def on_GET(self, origin, content, query, query_type):
-        return await self.handler.on_query_request(
-            query_type,
-            {k.decode("utf8"): v[0].decode("utf-8") for k, v in query.items()},
-        )
+        args = {k.decode("utf8"): v[0].decode("utf-8") for k, v in query.items()}
+        args["origin"] = origin
+        return await self.handler.on_query_request(query_type, args)
 
 
 class FederationMakeJoinServlet(BaseFederationServlet):