Fix prefix for v2/send_leave

This commit is contained in:
Brendan Abolivier 2019-11-11 16:46:09 +00:00
parent 74897de01f
commit 5e18dc7955
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 2 additions and 0 deletions

View File

@ -517,6 +517,8 @@ class FederationV1SendLeaveServlet(BaseFederationServlet):
class FederationV2SendLeaveServlet(BaseFederationServlet):
PATH = "/send_leave/(?P<room_id>[^/]*)/(?P<event_id>[^/]*)"
PREFIX = FEDERATION_V2_PREFIX
async def on_PUT(self, origin, content, query, room_id, event_id):
content = await self.handler.on_send_leave_request(origin, content, room_id)
return 200, content