mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
fix #1910
This commit is contained in:
parent
c41bd3fafd
commit
ede124a587
@ -194,7 +194,7 @@ class WebSocketEventBroadcaster(tornado.websocket.WebSocketHandler):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def broadcast(cls, **kwargs):
|
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:
|
for conn in cls.connections:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user