diff --git a/src/easynetwork/serializers/wrapper/compressor.py b/src/easynetwork/serializers/wrapper/compressor.py index e8f67c7f..b982f70b 100644 --- a/src/easynetwork/serializers/wrapper/compressor.py +++ b/src/easynetwork/serializers/wrapper/compressor.py @@ -186,7 +186,10 @@ def incremental_deserialize(self) -> Generator[None, bytes, tuple[_DTOPacketT, b results.append(chunk) del chunk - data = b"".join(results) + if len(results) == 1: + data = results[0] + else: + data = b"".join(results) unused_data: bytes = decompressor.unused_data del results, decompressor