We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd6bcc commit cd1681dCopy full SHA for cd1681d
linstor/linstorapi.py
@@ -280,8 +280,8 @@ def parse_volume_size_to_kib(cls, size_str):
280
def _decode_response_data(cls, response):
281
data = response.read()
282
if response.getheader("Content-Encoding", "text") == "gzip":
283
- return zlib.decompress(data, zlib.MAX_WBITS | 16)
284
- return data
+ return zlib.decompress(data, zlib.MAX_WBITS | 16).decode()
+ return data.decode()
285
286
def _require_version(self, required_version, msg="REST action not supported by server"):
287
"""
0 commit comments