diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-18 11:38:52 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-18 11:38:52 +0000 |
commit | ed4d44d833f671758456be421660029aee3778cd (patch) | |
tree | 563bb423551f8c264907b06cac6053f44cbfabf6 /synapse/http/servlet.py | |
parent | Clean out event_forward_extremities table when the server rejoins the room (diff) | |
parent | Factor out user id validation checks (diff) | |
download | synapse-ed4d44d833f671758456be421660029aee3778cd.tar.xz |
Merge pull request #109 from matrix-org/default_registration
Disable registration by default. Add script to register new users.
Diffstat (limited to 'synapse/http/servlet.py')
-rw-r--r-- | synapse/http/servlet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py index a4eb6c817c..265559a3ea 100644 --- a/synapse/http/servlet.py +++ b/synapse/http/servlet.py @@ -51,8 +51,8 @@ class RestServlet(object): pattern = self.PATTERN for method in ("GET", "PUT", "POST", "OPTIONS", "DELETE"): - if hasattr(self, "on_%s" % (method)): - method_handler = getattr(self, "on_%s" % (method)) + if hasattr(self, "on_%s" % (method,)): + method_handler = getattr(self, "on_%s" % (method,)) http_server.register_path(method, pattern, method_handler) else: raise NotImplementedError("RestServlet must register something.") |