diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2018-03-23 11:10:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 11:10:32 +0000 |
commit | b7e7b52452493f0abc76b0e75bed7c6b594333ae (patch) | |
tree | 7c379c9bb712e64fe61b2de2d181e5780117ab54 /synapse/app/client_reader.py | |
parent | Merge pull request #3006 from matrix-org/erikj/state_iter (diff) | |
parent | 404 correctly on missing paths via NoResource (diff) | |
download | synapse-b7e7b52452493f0abc76b0e75bed7c6b594333ae.tar.xz |
Merge pull request #3022 from matrix-org/matthew/noresource
404 correctly on missing paths via NoResource
Diffstat (limited to 'synapse/app/client_reader.py')
-rw-r--r-- | synapse/app/client_reader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/client_reader.py b/synapse/app/client_reader.py index 0a8ce9bc66..267d34c881 100644 --- a/synapse/app/client_reader.py +++ b/synapse/app/client_reader.py @@ -44,7 +44,7 @@ from synapse.util.logcontext import LoggingContext from synapse.util.manhole import manhole from synapse.util.versionstring import get_version_string from twisted.internet import reactor -from twisted.web.resource import Resource +from twisted.web.resource import NoResource logger = logging.getLogger("synapse.app.client_reader") @@ -88,7 +88,7 @@ class ClientReaderServer(HomeServer): "/_matrix/client/api/v1": resource, }) - root_resource = create_resource_tree(resources, Resource()) + root_resource = create_resource_tree(resources, NoResource()) _base.listen_tcp( bind_addresses, |