Update server.py

This commit is contained in:
Namhyeon Go 2024-11-14 17:00:38 +09:00 committed by GitHub
parent 69a3c5f323
commit 9cc6bb3b08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,7 +141,7 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes):
# debugging
logger.debug("@ " + ("%s:%s" % addr))
logger.debug("> " + str(data))
logger.debug("> " + data.hex(' '))
# JSON-RPC 2.0 request over Socket (stateful)
if data.find(b"{") == 0 and process_jsonrpc2(data):