Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #71 from wizzzet/patch-1
Browse files Browse the repository at this point in the history
python3 json.dumps does not dump bytes
  • Loading branch information
FZambia committed Jul 5, 2015
2 parents 8a82e1e + 924be7d commit 54b99ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge/web/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def post(self):
token = self.create_signed_value("token", "authorized")
self.set_header("Content-Type", "application/json")
self.finish(json_encode({
"token": token
"token": token.decode('utf-8')
}))
else:
raise tornado.web.HTTPError(400)
Expand Down Expand Up @@ -190,4 +190,4 @@ def on_close(self):
self.unsubscribe()
logger.info("admin disconnected")

send = WebSocketHandler.write_message
send = WebSocketHandler.write_message

0 comments on commit 54b99ae

Please sign in to comment.