mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:56:05 -04:00
Don't pass host_web_client flag to register_servlets, it needs to be a Resource not a RestServlet.
This commit is contained in:
parent
38c7e92331
commit
2da1e1526e
2 changed files with 2 additions and 4 deletions
|
@ -171,7 +171,7 @@ class HomeServer(BaseHomeServer):
|
|||
def build_distributor(self):
|
||||
return Distributor()
|
||||
|
||||
def register_servlets(self, host_web_client):
|
||||
def register_servlets(self):
|
||||
""" Register all servlets associated with this HomeServer.
|
||||
|
||||
Args:
|
||||
|
@ -179,5 +179,3 @@ class HomeServer(BaseHomeServer):
|
|||
"""
|
||||
# Simply building the ServletFactory is sufficient to have it register
|
||||
factory = self.get_rest_servlet_factory()
|
||||
if host_web_client:
|
||||
factory.register_web_client(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue