Skip to content

Commit

Permalink
Return bytes in frame.body instead of bytearray (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrslev authored Aug 1, 2024
1 parent b6804c1 commit 4418211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stompman/serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def parse_lines_into_frame(lines: deque[bytearray]) -> AnyClientFrame | AnyServe
header = parse_header(line)
if header and header[0] not in headers:
headers[header[0]] = header[1]
body = lines.popleft() if lines else b""
body = bytes(lines.popleft()) if lines else b""
return make_frame_from_parts(command=command, headers=headers, body=body)


Expand Down

0 comments on commit 4418211

Please sign in to comment.