diff --git a/pyipp/__version__.py b/pyipp/__version__.py index 8dfe15fb2..a63ba7a32 100644 --- a/pyipp/__version__.py +++ b/pyipp/__version__.py @@ -1,3 +1,3 @@ """Asynchronous Python client for IPP.""" -__version__ = "0.11.0" +__version__ = "0.11.1" diff --git a/pyipp/serializer.py b/pyipp/serializer.py index 5675cab67..c44901632 100644 --- a/pyipp/serializer.py +++ b/pyipp/serializer.py @@ -19,8 +19,9 @@ def __construct_attibute_values(tag: IppTag, value: Any) -> bytes: bs += struct.pack(">h", 1) bs += struct.pack(">?", value) else: - bs += struct.pack(">h", len(value)) - bs += value.encode("utf-8") + encoded_value = value.encode("utf-8") + bs += struct.pack(">h", len(encoded_value)) + bs += encoded_value return bs