Bug 29330: (QA follow-up) Use passed MIME type

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended: tidied.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2021-11-08 08:10:38 -03:00 committed by Kyle Hall
parent 54546da3f0
commit 6c96102678
1 changed files with 1 additions and 1 deletions

View File

@ -1262,7 +1262,7 @@ sub _add_attachments {
foreach my $attachment ( @$attachments ) {
$message->attach(
Encode::encode( "UTF-8", $attachment->{content} ),
content_type => 'application/octet-stream',
content_type => $attachment->{type} || 'application/octet-stream',
name => $attachment->{filename},
disposition => 'attachment',
);