Skip to content
Snippets Groups Projects
Unverified Commit f77e9976 authored by Brendan Abolivier's avatar Brendan Abolivier
Browse files

Send 3PID bind requests as JSON data

parent f2817145
No related branches found
No related tags found
No related merge requests found
Fix 3PID bind requests being sent to identity servers as `application/x-form-www-urlencoded` data, which is deprecated.
...@@ -118,7 +118,7 @@ class IdentityHandler(BaseHandler): ...@@ -118,7 +118,7 @@ class IdentityHandler(BaseHandler):
raise SynapseError(400, "No client_secret in creds") raise SynapseError(400, "No client_secret in creds")
try: try:
data = yield self.http_client.post_urlencoded_get_json( data = yield self.http_client.post_post_get_json(
"https://%s%s" % (id_server, "/_matrix/identity/api/v1/3pid/bind"), "https://%s%s" % (id_server, "/_matrix/identity/api/v1/3pid/bind"),
{"sid": creds["sid"], "client_secret": client_secret, "mxid": mxid}, {"sid": creds["sid"], "client_secret": client_secret, "mxid": mxid},
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment