Skip to content
Snippets Groups Projects
Unverified Commit 9d8e380d authored by Sean Quah's avatar Sean Quah Committed by GitHub
Browse files

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: default avatarSean Quah <seanq@element.io>
parent dffecade
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment