Merge pull request #677 from isra17/json_error
Use `ensure_ascii` in wep.app#broadcast
This commit is contained in:
commit
822bd10465
|
@ -81,7 +81,8 @@ class WebSocketEventBroadcaster(tornado.websocket.WebSocketHandler):
|
|||
|
||||
@classmethod
|
||||
def broadcast(cls, **kwargs):
|
||||
message = json.dumps(kwargs)
|
||||
message = json.dumps(kwargs, ensure_ascii=False)
|
||||
|
||||
for conn in cls.connections:
|
||||
try:
|
||||
conn.write_message(message)
|
||||
|
|
Loading…
Reference in New Issue