From 11d0b177cf219e5f592f35ae0880a7eb372ee7b1 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 5 Mar 2024 12:31:32 +0900 Subject: [PATCH] Update server.py --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):