mirror of https://github.com/MISP/misp-modules
fix: Fixed changes omissions in handler function
parent
63ba7580d3
commit
92fbcaeff6
|
@ -203,9 +203,9 @@ def handler(q=False):
|
|||
else:
|
||||
header = request['config'].get('header').split(',')
|
||||
header = [c.strip() for c in header]
|
||||
csv_parser = CsvParser(header, has_header)
|
||||
csv_parser = CsvParser(header, has_header, data.split('\n'))
|
||||
# build the attributes
|
||||
csv_parser.buildAttributes()
|
||||
csv_parser.parse_csv()
|
||||
r = {'results': csv_parser.result}
|
||||
return r
|
||||
|
||||
|
|
Loading…
Reference in New Issue