mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-05 17:31:03 +00:00
Update server.py
This commit is contained in:
parent
69a3c5f323
commit
9cc6bb3b08
|
@ -141,7 +141,7 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes):
|
||||||
|
|
||||||
# debugging
|
# debugging
|
||||||
logger.debug("@ " + ("%s:%s" % addr))
|
logger.debug("@ " + ("%s:%s" % addr))
|
||||||
logger.debug("> " + str(data))
|
logger.debug("> " + data.hex(' '))
|
||||||
|
|
||||||
# JSON-RPC 2.0 request over Socket (stateful)
|
# JSON-RPC 2.0 request over Socket (stateful)
|
||||||
if data.find(b"{") == 0 and process_jsonrpc2(data):
|
if data.find(b"{") == 0 and process_jsonrpc2(data):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user