mirror of https://github.com/MISP/PyMISP
Merge branch 'master' of github.com:CIRCL/PyMISP
commit
fd5c22d8d9
|
@ -677,7 +677,7 @@ class PyMISP(object):
|
|||
|
||||
def _encode_file_to_upload(self, path):
|
||||
with open(path, 'rb') as f:
|
||||
return base64.b64encode(f.read())
|
||||
return str(base64.b64encode(f.read()))
|
||||
|
||||
def upload_sample(self, filename, filepath, event_id, distribution, to_ids,
|
||||
category, comment, info, analysis, threat_level_id):
|
||||
|
|
Loading…
Reference in New Issue