summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-31 14:15:45 +0100
committerErik Johnston <erik@matrix.org>2017-05-31 14:15:45 +0100
commit535c99f157a76b7d2a27393ce62268d0cef4abef (patch)
tree7307e9a75b39bcfe9f726cfa0ad85f3af3342da2 /synapse/rest/client/v2_alpha
parentAdd REST API (diff)
downloadsynapse-535c99f157a76b7d2a27393ce62268d0cef4abef.tar.xz
Use POST
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r--synapse/rest/client/v2_alpha/user_directory.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/user_directory.py b/synapse/rest/client/v2_alpha/user_directory.py
index f1bae0b34d..fe91207195 100644
--- a/synapse/rest/client/v2_alpha/user_directory.py
+++ b/synapse/rest/client/v2_alpha/user_directory.py
@@ -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)