mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
Base64 Problem
This commit is contained in:
parent
dd9cee83db
commit
bc8df8e671
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ def get_item_as_txt(request_dict):
|
|||
return {'status': 'error', 'reason': 'Item not found'}, 404
|
||||
|
||||
item_content = get_item_content(item_id)
|
||||
base64_output = base64.b64encode(item_content)
|
||||
base64_output = base64.b64encode(item_content.encode())
|
||||
dict_item = {'id': item_id, 'content': base64_output}
|
||||
|
||||
return dict_item, 200
|
||||
|
|
Loading…
Reference in a new issue