summary refs log tree commit diff
path: root/synapse/federation/transport
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-04-06 07:21:57 -0400
committerGitHub <noreply@github.com>2021-04-06 07:21:57 -0400
commitd959d28730ec6a0765ab72b10bcc96b1507233ac (patch)
treec3623edbf657acabff377549416f9d7d53a2e836 /synapse/federation/transport
parentConvert storage test cases to HomeserverTestCase. (#9736) (diff)
downloadsynapse-d959d28730ec6a0765ab72b10bcc96b1507233ac.tar.xz
Add type hints to the federation handler and server. (#9743)
Diffstat (limited to 'synapse/federation/transport')
-rw-r--r--synapse/federation/transport/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index 84e39c5a46..5ef0556ef7 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -620,8 +620,8 @@ class FederationThirdPartyInviteExchangeServlet(BaseFederationServlet):
     PATH = "/exchange_third_party_invite/(?P<room_id>[^/]*)"
 
     async def on_PUT(self, origin, content, query, room_id):
-        content = await self.handler.on_exchange_third_party_invite_request(content)
-        return 200, content
+        await self.handler.on_exchange_third_party_invite_request(content)
+        return 200, {}
 
 
 class FederationClientKeysQueryServlet(BaseFederationServlet):