summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-05-23 14:38:56 +0100
committerDavid Baker <dave@matrix.org>2018-05-23 14:38:56 +0100
commit2c7866d6643f4fd3bbffa9905ede6c36983ef29c (patch)
treec60c5d42c2c8079968a5949ef56d69c20b8c40a6 /synapse/http
parentcomment typo (diff)
downloadsynapse-2c7866d6643f4fd3bbffa9905ede6c36983ef29c.tar.xz
Hit the 3pid unbind endpoint on deactivation
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/matrixfederationclient.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 4b2b85464d..21eaf77dc4 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -262,14 +262,19 @@ class MatrixFederationHttpClient(object):
             defer.returnValue(response)
 
     def sign_request(self, destination, method, url_bytes, headers_dict,
-                     content=None):
+                     content=None, destination_is=None):
         request = {
             "method": method,
             "uri": url_bytes,
             "origin": self.server_name,
-            "destination": destination,
         }
 
+        if destination is not None:
+            request["destination"] = destination
+
+        if destination_is is not None:
+            request["destination_is"] = destination_is
+
         if content is not None:
             request["content"] = content