mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 16:34:49 -04:00
Stop passing bytes when dumping JSON (#7799)
This commit is contained in:
parent
e0c0129693
commit
ff0680f69d
4 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue