Base64 Problem

pull/586/head
TonyJabbour 2021-10-04 15:44:41 +02:00
parent dd9cee83db
commit bc8df8e671
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ def get_item_as_txt(request_dict):
return {'status': 'error', 'reason': 'Item not found'}, 404 return {'status': 'error', 'reason': 'Item not found'}, 404
item_content = get_item_content(item_id) 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} dict_item = {'id': item_id, 'content': base64_output}
return dict_item, 200 return dict_item, 200