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

Commit

Permalink
Merge pull request #4250 from matrix-org/hawkowl/pusher-remove-py3
Browse files Browse the repository at this point in the history
Fix removing pushers on python 3
  • Loading branch information
richvdh authored Dec 4, 2018
2 parents a484735 + 998ba41 commit a077e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4250.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pushers can now be unsubscribed from on Python 3.
2 changes: 1 addition & 1 deletion synapse/rest/client/v1/pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class PushersRemoveRestServlet(RestServlet):
To allow pusher to be delete by clicking a link (ie. GET request)
"""
PATTERNS = client_path_patterns("/pushers/remove$")
SUCCESS_HTML = "<html><body>You have been unsubscribed</body><html>"
SUCCESS_HTML = b"<html><body>You have been unsubscribed</body><html>"

def __init__(self, hs):
super(PushersRemoveRestServlet, self).__init__()
Expand Down

0 comments on commit a077e71

Please sign in to comment.