summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/rest/client/v2_alpha/account.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py

index 32770a4a95..20e1e01592 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py
@@ -17,6 +17,7 @@ import logging import re +from six import ensure_binary from six.moves import http_client import jinja2 @@ -295,7 +296,7 @@ class PasswordResetSubmitTokenServlet(RestServlet): ) request.setResponseCode(e.code) - request.write(html.encode('utf-8')) + request.write(ensure_binary(html)) finish_request(request) defer.returnValue(None)