Made mediaType lower case
This commit is contained in:
parent
2373717283
commit
85c392e1b7
|
@ -185,7 +185,7 @@ class MailReader(
|
||||||
*
|
*
|
||||||
* -> This method removes parameters and return media type (first part) only
|
* -> 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(';')
|
val indexOfSeparator = contentType.indexOf(';')
|
||||||
|
|
||||||
if (indexOfSeparator > -1) {
|
if (indexOfSeparator > -1) {
|
||||||
|
|
Loading…
Reference in New Issue