Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Change register/available to POST (from GET)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Barnard committed May 10, 2017
1 parent ca238bc commit f7278e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/v2_alpha/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(self, hs):
)

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

0 comments on commit f7278e6

Please sign in to comment.