Skip to content

Commit

Permalink
Merge pull request #99 from BearDimonR/patch-1
Browse files Browse the repository at this point in the history
Fix reading json string
  • Loading branch information
long2ice authored Oct 11, 2024
2 parents 58088e8 + c56bf25 commit 7c66b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncmy/replication/packets.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def read_variable_length_string(self):
length = 0
bits_read = 0
while byte & 0x80 != 0:
byte = struct.pack("!B", self.read(1))
byte = struct.unpack("!B", self.read(1))[0]
length = length | ((byte & 0x7F) << bits_read)
bits_read = bits_read + 7
return self.read(length)
Expand Down

0 comments on commit 7c66b1b

Please sign in to comment.