Change register/available to POST (from GET)

pull/2209/head
Luke Barnard 2017-05-10 11:40:18 +01:00
parent ca238bc023
commit f7278e612e
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class UsernameAvailabilityRestServlet(RestServlet):
) )
@defer.inlineCallbacks @defer.inlineCallbacks
def on_GET(self, request): def on_POST(self, request):
ip = self.hs.get_ip_from_request(request) ip = self.hs.get_ip_from_request(request)
with self.ratelimiter.ratelimit(ip) as wait_deferred: with self.ratelimiter.ratelimit(ip) as wait_deferred:
yield wait_deferred yield wait_deferred