mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 23:20:09 +03:00
Use POST
This commit is contained in:
parent
45a5df5914
commit
535c99f157
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class UserDirectorySearchRestServlet(RestServlet):
|
|||
self.user_directory_handler = hs.get_user_directory_handler()
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def on_GET(self, request):
|
||||
def on_POST(self, request):
|
||||
yield self.auth.get_user_by_req(request, allow_guest=False)
|
||||
body = parse_json_object_from_request(request)
|
||||
|
||||
|
|
Loading…
Reference in a new issue