mirror of https://github.com/CIRCL/lookyloo
fix: export compress HAR
parent
4a3c535ee7
commit
ebd2b29993
|
@ -822,7 +822,8 @@ class Lookyloo():
|
||||||
all_paths.append(capture_dir / 'uuid')
|
all_paths.append(capture_dir / 'uuid')
|
||||||
with ZipFile(to_return, 'w') as myzip:
|
with ZipFile(to_return, 'w') as myzip:
|
||||||
for path in all_paths:
|
for path in all_paths:
|
||||||
if path.suffix in ['.pickle', '.gz']:
|
if 'pickle' in path.name:
|
||||||
|
# We do not want to export the pickle
|
||||||
continue
|
continue
|
||||||
myzip.write(path, arcname=f'{capture_dir.name}/{path.name}')
|
myzip.write(path, arcname=f'{capture_dir.name}/{path.name}')
|
||||||
to_return.seek(0)
|
to_return.seek(0)
|
||||||
|
|
Loading…
Reference in New Issue