diff options
| author | Sean Quah <seanq@element.io> | 2022-04-28 15:59:08 +0100 |
|---|---|---|
| committer | Sean Quah <seanq@element.io> | 2022-04-28 19:28:00 +0100 |
| commit | 2326bbf0999e99b57dafcebd966dd9bd942c52a2 (patch) | |
| tree | 594388a01de82a747ba5e3691c25e5bbe7d78a95 /scripts-dev | |
| parent | Respect the `@cancellable` flag for `DirectServe{Html,Json}Resource`s (diff) | |
| download | synapse-2326bbf0999e99b57dafcebd966dd9bd942c52a2.tar.xz | |
Respect the `@cancellable` flag for `RestServlet`s and `BaseFederationServlet`s
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>
Diffstat (limited to 'scripts-dev')
0 files changed, 0 insertions, 0 deletions
