mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
fix #1910
This commit is contained in:
parent
c41bd3fafd
commit
ede124a587
@ -194,7 +194,7 @@ class WebSocketEventBroadcaster(tornado.websocket.WebSocketHandler):
|
||||
|
||||
@classmethod
|
||||
def broadcast(cls, **kwargs):
|
||||
message = json.dumps(kwargs, ensure_ascii=False)
|
||||
message = json.dumps(kwargs, ensure_ascii=False).encode("utf8", "surrogateescape")
|
||||
|
||||
for conn in cls.connections:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user