Made mediaType lower case

This commit is contained in:
dankito 2024-11-21 21:50:23 +01:00
parent 2373717283
commit 85c392e1b7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {