Skip to content

Commit

Permalink
Update server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Mar 5, 2024
1 parent 670cd3c commit 11d0b17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -505,6 +505,7 @@ def readall(cls, conn):
data += chunk
except:
pass

return data

def __init__(self):
Expand Down

0 comments on commit 11d0b17

Please sign in to comment.