From 85c392e1b76a3256856f891da6ab5cf4241ea46f Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 21 Nov 2024 21:50:23 +0100 Subject: [PATCH] Made mediaType lower case --- .../src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt index c8f69e4..1136df6 100644 --- a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt +++ b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt @@ -185,7 +185,7 @@ class MailReader( * * -> This method removes parameters and return media type (first part) only */ - private fun getMediaType(part: Part): String? = part.contentType?.let { contentType -> + private fun getMediaType(part: Part): String? = part.contentType?.lowercase()?.let { contentType -> val indexOfSeparator = contentType.indexOf(';') if (indexOfSeparator > -1) {