From 3927b975845503dcc9c7cf004db09321f8ac29fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 9 Mar 2023 13:17:10 +0200 Subject: [PATCH] fix: let the module figure out the mimetype for the attachment --- lookyloo/lookyloo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 59d3eb5..d8cbef1 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -703,7 +703,7 @@ class Lookyloo(): msg.set_content(body) try: contact_for_takedown = self.contacts(capture_uuid) - msg.add_attachment(json.dumps(contact_for_takedown, indent=2), maintype='application', subtype='json', filename='contacts.json') + msg.add_attachment(json.dumps(contact_for_takedown, indent=2), filename='contacts.json') except Exception as e: self.logger.warning(f'Unable to get the contacts: {e}') try: