|
|
|
@ -56,7 +56,7 @@ from synapse.util.rlimit import change_resource_limit |
|
|
|
|
from synapse.util.versionstring import get_version_string |
|
|
|
|
from twisted.application import service |
|
|
|
|
from twisted.internet import defer, reactor |
|
|
|
|
from twisted.web.resource import EncodingResourceWrapper, Resource |
|
|
|
|
from twisted.web.resource import EncodingResourceWrapper, NoResource |
|
|
|
|
from twisted.web.server import GzipEncoderFactory |
|
|
|
|
from twisted.web.static import File |
|
|
|
|
|
|
|
|
@ -126,7 +126,7 @@ class SynapseHomeServer(HomeServer): |
|
|
|
|
if WEB_CLIENT_PREFIX in resources: |
|
|
|
|
root_resource = RootRedirect(WEB_CLIENT_PREFIX) |
|
|
|
|
else: |
|
|
|
|
root_resource = Resource() |
|
|
|
|
root_resource = NoResource() |
|
|
|
|
|
|
|
|
|
root_resource = create_resource_tree(resources, root_resource) |
|
|
|
|
|
|
|
|
|