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

Commit

Permalink
Merge pull request #2209 from matrix-org/luke/username-availability-post
Browse files Browse the repository at this point in the history
Change register/available to POST (from GET)
  • Loading branch information
lukebarnard1 committed May 10, 2017
2 parents ca238bc + f7278e6 commit 7313a23
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 7313a23

Please sign in to comment.