Skip to content

Commit 4418211

Browse files
authored
Return bytes in frame.body instead of bytearray (#48)
1 parent b6804c1 commit 4418211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stompman/serde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def parse_lines_into_frame(lines: deque[bytearray]) -> AnyClientFrame | AnyServe
150150
header = parse_header(line)
151151
if header and header[0] not in headers:
152152
headers[header[0]] = header[1]
153-
body = lines.popleft() if lines else b""
153+
body = bytes(lines.popleft()) if lines else b""
154154
return make_frame_from_parts(command=command, headers=headers, body=body)
155155

156156

0 commit comments

Comments
 (0)