From 4418211426f90e5f70b61c1ecc1175739072d4de Mon Sep 17 00:00:00 2001 From: Lev Vereshchagin Date: Thu, 1 Aug 2024 12:24:30 +0300 Subject: [PATCH] Return bytes in frame.body instead of bytearray (#48) --- stompman/serde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stompman/serde.py b/stompman/serde.py index 3deab18..edb1054 100644 --- a/stompman/serde.py +++ b/stompman/serde.py @@ -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)