From 4e4a9c2075ec85b49b89d7aa27b321d9f8f36770 Mon Sep 17 00:00:00 2001 From: rs <> Date: Thu, 10 Jul 2025 22:31:42 -0500 Subject: [PATCH] Send bytes instead of string --- cbs-srv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cbs-srv.py b/cbs-srv.py index be2bb15..2778b37 100755 --- a/cbs-srv.py +++ b/cbs-srv.py @@ -232,7 +232,7 @@ def main(): conn.sendall('{} {}\r\n'.format(x.code, x.meta).encode('utf-8')) except Exception as x: logging.error('Exception: {}'.format(x)) - conn.sendall('40 Server error\r\n') + conn.sendall('40 Server error\r\n'.encode('utf-8')) conn.shutdown() conn.sock_shutdown(socket.SHUT_RDWR) -- 2.43.0