Skip to content

Commit e007193

Browse files
committed
base64 decode when downloading file
1 parent a75f98b commit e007193

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cuenca/resources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def download(
107107
f'/{cls._resource}/{id}',
108108
headers=dict(Accept=file_format.value),
109109
)
110-
return BytesIO(resp)
110+
return BytesIO(base64.b64decode(resp))
111111

112112
@property
113113
def pdf(self) -> bytes:

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.14.4'
1+
__version__ = '0.14.5.dev0'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

0 commit comments

Comments
 (0)