summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Barnard <lukeb@openmarket.com>2017-05-10 11:40:18 +0100
committerLuke Barnard <lukeb@openmarket.com>2017-05-10 11:40:18 +0100
commitf7278e612e0238d918c2a0d71ca3fb8fb499c765 (patch)
tree50e424d5dce7e2236e01cd44ad4125af549f05c3
parentMerge branch 'release-v0.21.0' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-f7278e612e0238d918c2a0d71ca3fb8fb499c765.tar.xz
Change register/available to POST (from GET)
-rw-r--r--synapse/rest/client/v2_alpha/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py

index 38a739f2f8..6a7cd96ea5 100644 --- a/synapse/rest/client/v2_alpha/register.py +++ b/synapse/rest/client/v2_alpha/register.py
@@ -142,7 +142,7 @@ class UsernameAvailabilityRestServlet(RestServlet): ) @defer.inlineCallbacks - def on_GET(self, request): + def on_POST(self, request): ip = self.hs.get_ip_from_request(request) with self.ratelimiter.ratelimit(ip) as wait_deferred: yield wait_deferred