summary refs log tree commit diff
path: root/synapse/http/servlet.py
diff options
context:
space:
mode:
authorBen Banfield-Zanin <benbz@matrix.org>2021-01-14 15:02:42 +0000
committerBen Banfield-Zanin <benbz@matrix.org>2021-01-14 15:02:42 +0000
commit3cbcf6b923d6339c5c19c03e0edc4f81c0199867 (patch)
tree681e63f940bc91db06f4604cf20a773e9c8661ef /synapse/http/servlet.py
parentMerge remote-tracking branch 'origin/release-v1.21.2' into toml/keycloak_hints (diff)
parentMove removal warning up changelog (diff)
downloadsynapse-3cbcf6b923d6339c5c19c03e0edc4f81c0199867.tar.xz
Merge remote-tracking branch 'origin/release-v1.25.0' into toml/keycloak_hints
Diffstat (limited to 'synapse/http/servlet.py')
-rw-r--r--synapse/http/servlet.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/http/servlet.py b/synapse/http/servlet.py

index fd90ba7828..b361b7cbaf 100644 --- a/synapse/http/servlet.py +++ b/synapse/http/servlet.py
@@ -272,7 +272,6 @@ class RestServlet: on_PUT on_POST on_DELETE - on_OPTIONS Automatically handles turning CodeMessageExceptions thrown by these methods into the appropriate HTTP response. @@ -283,7 +282,7 @@ class RestServlet: if hasattr(self, "PATTERNS"): patterns = self.PATTERNS - for method in ("GET", "PUT", "POST", "OPTIONS", "DELETE"): + for method in ("GET", "PUT", "POST", "DELETE"): if hasattr(self, "on_%s" % (method,)): servlet_classname = self.__class__.__name__ method_handler = getattr(self, "on_%s" % (method,))