From 0d6ef70bb0779b27e0325e51b9cc06a72f313f85 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 8 Nov 2021 08:10:38 -0300 Subject: [PATCH] Bug 29330: (QA follow-up) Use passed MIME type Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Amended: tidied. Signed-off-by: Jonathan Druart --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 49266f42ba..58e6293068 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1253,7 +1253,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', ); -- 2.39.5