Skip to content

Commit

Permalink
base64 decode when downloading file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexviquez committed Sep 19, 2022
1 parent a75f98b commit e007193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cuenca/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def download(
f'/{cls._resource}/{id}',
headers=dict(Accept=file_format.value),
)
return BytesIO(resp)
return BytesIO(base64.b64decode(resp))

@property
def pdf(self) -> bytes:
Expand Down
2 changes: 1 addition & 1 deletion cuenca/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.14.4'
__version__ = '0.14.5.dev0'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'

0 comments on commit e007193

Please sign in to comment.