fix: let the module figure out the mimetype for the attachment

pull/637/head
Raphaël Vinot 2023-03-09 13:17:10 +02:00
parent 6d5c4df0d4
commit 3927b97584
1 changed files with 1 additions and 1 deletions

View File

@ -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: