Skip to content

Commit

Permalink
content must be bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
myururdurmaz committed Aug 6, 2020
1 parent 74f917e commit 9e78581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmislib/atompub/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,7 @@ def getContentStream(self):
**self._cmisClient.extArgs)
if result.status_code != 200:
raise CmisException(result['status'])
return io.StringIO(result.content.decode("latin"))
return io.BytesIO(result.content)
else:
# otherwise, try to return the value of the content element
if contentElements[0].childNodes:
Expand Down

0 comments on commit 9e78581

Please sign in to comment.