0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 14:43:51 +01:00

Merge pull request #2209 from matrix-org/luke/username-availability-post

Change register/available to POST (from GET)
This commit is contained in:
Luke Barnard 2017-05-10 13:05:45 +01:00 committed by GitHub
commit 7313a23dba

View file

@ -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