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>
(cherry picked from commit 6c96102678)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
Tomas Cohen Arazi 2021-11-08 08:10:38 -03:00 committed by Victor Grousset/tuxayo
parent 6fff1cecb7
commit 42015a0450
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,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',
);