Correctly parse potentially buffered reply
parent
e4c79c581d
commit
ebfb743222
|
@ -8,7 +8,7 @@ import i2plib.utils
|
|||
BUFFER_SIZE = 65536
|
||||
|
||||
def parse_reply(data):
|
||||
return i2plib.sam.Answer(data.decode().strip())
|
||||
return i2plib.sam.Answer(data.split(b"\n")[0].decode())
|
||||
|
||||
async def get_sam_socket(sam_address=i2plib.sam.DEFAULT_ADDRESS, loop=None):
|
||||
"""A couroutine used to create a new SAM socket.
|
||||
|
|
Loading…
Reference in New Issue