diff --git a/server.py b/server.py index d27832d..f8ec6fd 100644 --- a/server.py +++ b/server.py @@ -492,7 +492,7 @@ def send_accept(cls, conn, method, success = True): _, message = jsonrpc2_encode(f"{method}_accept", { "success": success }) - conn.send(message) + conn.send(message.encode(client_encoding)) @classmethod def readall(cls, conn): @@ -505,6 +505,7 @@ def readall(cls, conn): data += chunk except: pass + return data def __init__(self):