summary refs log tree commit diff
path: root/synapse/handlers/identity.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-07-08 07:14:56 -0400
committerGitHub <noreply@github.com>2020-07-08 07:14:56 -0400
commitff0680f69d4490d3b0884d97261f5b4f9c1ece1d (patch)
treef949857d980e9eaaffa4589c31a6a37dc10cf815 /synapse/handlers/identity.py
parentUpdate the installation docs on apt-transport-https (#7801) (diff)
downloadsynapse-ff0680f69d4490d3b0884d97261f5b4f9c1ece1d.tar.xz
Stop passing bytes when dumping JSON (#7799)
Diffstat (limited to 'synapse/handlers/identity.py')
-rw-r--r--synapse/handlers/identity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py
index 4ba0042768..701233ebb4 100644
--- a/synapse/handlers/identity.py
+++ b/synapse/handlers/identity.py
@@ -251,10 +251,10 @@ class IdentityHandler(BaseHandler):
         # 'browser-like' HTTPS.
         auth_headers = self.federation_http_client.build_auth_headers(
             destination=None,
-            method="POST",
+            method=b"POST",
             url_bytes=url_bytes,
             content=content,
-            destination_is=id_server,
+            destination_is=id_server.encode("ascii"),
         )
         headers = {b"Authorization": auth_headers}