summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuke Barnard <lukebarnard1@users.noreply.github.com>2017-05-10 13:05:45 +0100
committerGitHub <noreply@github.com>2017-05-10 13:05:45 +0100
commit7313a23dba7d343c2aef026d122f3f687c9917f6 (patch)
tree50e424d5dce7e2236e01cd44ad4125af549f05c3
parentMerge branch 'release-v0.21.0' of github.com:matrix-org/synapse into develop (diff)
parentChange register/available to POST (from GET) (diff)
downloadsynapse-7313a23dba7d343c2aef026d122f3f687c9917f6.tar.xz
Merge pull request #2209 from matrix-org/luke/username-availability-post
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