From aa75caad22ecd81d03a08ab6357946d4937239b6 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 Content-Type: text/plain; charset=utf-8 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Amended: tidied. --- 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.20.1