mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-06 06:55:00 +00:00
Update server.py
This commit is contained in:
parent
670cd3c7e6
commit
11d0b177cf
|
@ -492,7 +492,7 @@ class Extension():
|
|||
_, 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 @@ class Extension():
|
|||
data += chunk
|
||||
except:
|
||||
pass
|
||||
|
||||
return data
|
||||
|
||||
def __init__(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user