summary refs log tree commit diff
path: root/synapse/rest/client
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/rest/client
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/rest/client')
-rw-r--r--synapse/rest/client/v1/voip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/voip.py b/synapse/rest/client/v1/voip.py
index 747d46eac2..50277c6cf6 100644
--- a/synapse/rest/client/v1/voip.py
+++ b/synapse/rest/client/v1/voip.py
@@ -50,7 +50,7 @@ class VoipRestServlet(RestServlet):
             # We need to use standard padded base64 encoding here
             # encode_base64 because we need to add the standard padding to get the
             # same result as the TURN server.
-            password = base64.b64encode(mac.digest())
+            password = base64.b64encode(mac.digest()).decode("ascii")
 
         elif turnUris and turnUsername and turnPassword and userLifetime:
             username = turnUsername