Skip to content

Commit

Permalink
Fix downloading email attachments in the admin
Browse files Browse the repository at this point in the history
  • Loading branch information
sastred committed Nov 22, 2023
1 parent 37739ec commit 5c3aebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_yubin/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def download_view(self, request, pk, signature):
msg = instance.get_message_parser()
attachment = mailparser_utils.get_attachment(msg, signature)
response = HttpResponse(content_type=attachment['mail_content_type'])
response['Content-Disposition'] = attachment['content-disposition']
response['Content-Disposition'] = str(attachment['content-disposition'])
response.write(mailparser_utils.get_content(attachment))
return response

Expand Down

0 comments on commit 5c3aebf

Please sign in to comment.