Skip to content

Commit e90abcc

Browse files
author
Cedric Kastner
committed
1 parent 9a1b0eb commit e90abcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fetch/Message.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ protected function processStructure($structure, $partIdentifier = null)
523523
if (!empty($parameters['charset']) && $parameters['charset'] !== self::$charset) {
524524
$mb_converted = false;
525525
if (function_exists('mb_convert_encoding')) {
526-
if (!in_array($parameters['charset'], mb_list_encodings())) {
526+
if (!in_array(strtoupper($parameters['charset']), array_map('strtoupper', mb_list_encodings()))) {
527527
if ($structure->encoding === 0) {
528528
$parameters['charset'] = 'US-ASCII';
529529
} else {

0 commit comments

Comments
 (0)