This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially revert #11602 to prevent webclient overriding client resource
known client resource prefixes under one, simplified '/_matrix/client' prefix. Unfortunately, '/_matrix/client' is already a prefix used by the 'webclient' resource. As we use a Python dictionary to hold a mapping from prefix to resource, configuring a 'webclient' resource after a 'client' resource would end up with all client requests being redirected to the webclient resource (which doesn't know how to handle things like /login or /sync). Reverting #11602 fixes the bug while maintaining JSON responses as the PR intended. However, this bug has highlighted how fragile the resource code is currently.
- Loading branch information