0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 15:31:19 +01:00

Send 3PID bind requests as JSON data

This commit is contained in:
Brendan Abolivier 2019-07-10 15:46:42 +01:00
parent f281714583
commit f77e997619
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD
2 changed files with 2 additions and 1 deletions

1
changelog.d/5656.bugfix Normal file
View file

@ -0,0 +1 @@
Fix 3PID bind requests being sent to identity servers as `application/x-form-www-urlencoded` data, which is deprecated.

View file

@ -118,7 +118,7 @@ class IdentityHandler(BaseHandler):
raise SynapseError(400, "No client_secret in creds")
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"),
{"sid": creds["sid"], "client_secret": client_secret, "mxid": mxid},
)