Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Account validity: allow defining HTML templates to serve the us… (#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Feb 20, 2020
2 parents 7fbc573 + 8ed9e63 commit 27251db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/rest/client/v2_alpha/account_validity.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def on_GET(self, request):
request.setResponseCode(status_code)
request.setHeader(b"Content-Type", b"text/html; charset=utf-8")
request.setHeader(b"Content-Length", b"%d" % (len(response),))
request.write(ensure_binary(response))
request.write(response.encode("utf8"))
finish_request(request)
return None
defer.returnValue(None)


class AccountValiditySendMailServlet(RestServlet):
Expand Down Expand Up @@ -98,7 +98,7 @@ def on_POST(self, request):
user_id = requester.user.to_string()
yield self.account_activity_handler.send_renewal_email_to_user(user_id)

return (200, {})
defer.returnValue((200, {}))


def register_servlets(hs, http_server):
Expand Down

0 comments on commit 27251db

Please sign in to comment.