summary refs log tree commit diff
path: root/synapse/app/synchrotron.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-03-23 10:32:50 +0000
committerMatthew Hodgson <matthew@matrix.org>2018-03-23 10:32:50 +0000
commit8cbbfaefc1fc597cbbef52a10dbfb8ecd4d8a8cd (patch)
tree7c379c9bb712e64fe61b2de2d181e5780117ab54 /synapse/app/synchrotron.py
parentMerge pull request #3006 from matrix-org/erikj/state_iter (diff)
downloadsynapse-8cbbfaefc1fc597cbbef52a10dbfb8ecd4d8a8cd.tar.xz
404 correctly on missing paths via NoResource
fixes https://github.com/matrix-org/synapse/issues/2043 and https://github.com/matrix-org/synapse/issues/2029
Diffstat (limited to 'synapse/app/synchrotron.py')
-rw-r--r--synapse/app/synchrotron.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/synchrotron.py b/synapse/app/synchrotron.py
index abe91dcfbd..508b66613d 100644
--- a/synapse/app/synchrotron.py
+++ b/synapse/app/synchrotron.py
@@ -56,7 +56,7 @@ from synapse.util.manhole import manhole
 from synapse.util.stringutils import random_string
 from synapse.util.versionstring import get_version_string
 from twisted.internet import defer, reactor
-from twisted.web.resource import Resource
+from twisted.web.resource import NoResource
 
 logger = logging.getLogger("synapse.app.synchrotron")
 
@@ -269,7 +269,7 @@ class SynchrotronServer(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,