Convert the base64 to ascii

pull/5/head
Iglocska 2016-03-20 17:06:05 +01:00
parent 0ac7d23b25
commit e1d36a8a7d
1 changed files with 2 additions and 1 deletions

View File

@ -26,8 +26,9 @@ def handler(q=False):
else: else:
misperrors['error'] = "Link is missing" misperrors['error'] = "Link is missing"
return misperrors return misperrors
enc_data = str(data) enc_data = data.decode('ascii')
r = {'results': [{'types': mispattributes['output'], 'values': tocache, 'data': enc_data}]} r = {'results': [{'types': mispattributes['output'], 'values': tocache, 'data': enc_data}]}
print (r)
return r return r