mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:16:07 -04:00
Respect the @cancellable
flag for RestServlet
s and BaseFederationServlet
s (#12699)
Both `RestServlet`s and `BaseFederationServlet`s register their handlers with `HttpServer.register_paths` / `JsonResource.register_paths`. Update `JsonResource` to respect the `@cancellable` flag on handlers registered in this way. Although `ReplicationEndpoint` also registers itself using `register_paths`, it does not pass the handler method that would have the `@cancellable` flag directly, and so needs separate handling. Signed-off-by: Sean Quah <seanq@element.io>
This commit is contained in:
parent
dffecade7d
commit
9d8e380d2e
6 changed files with 191 additions and 2 deletions
|
@ -831,7 +831,7 @@ class FederatingHomeserverTestCase(HomeserverTestCase):
|
|||
self.site,
|
||||
method=method,
|
||||
path=path,
|
||||
content=content or "",
|
||||
content=content if content is not None else "",
|
||||
shorthand=False,
|
||||
await_result=await_result,
|
||||
custom_headers=custom_headers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue