mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
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
|
@classmethod
|
||||||
def broadcast(cls, **kwargs):
|
def broadcast(cls, **kwargs):
|
||||||
message = json.dumps(kwargs)
|
message = json.dumps(kwargs, ensure_ascii=False)
|
||||||
|
|
||||||
for conn in cls.connections:
|
for conn in cls.connections:
|
||||||
try:
|
try:
|
||||||
conn.write_message(message)
|
conn.write_message(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user