$cacheControl = [
'private',
];
- foreach (Header::normalize($response->getHeader('cache-control')) as $value) {
+ foreach (Header::splitList($response->getHeader('cache-control')) as $value) {
[$field] = \explode('=', $value, 2);
// Prevent duplication of the 'private' field.
[$mimeType] = ArrayUtil::trim(\explode(";", $acceptableMimeType), false);
return $mimeType;
- }, Header::normalize($_SERVER["HTTP_ACCEPT"]));
+ }, Header::splitList($_SERVER["HTTP_ACCEPT"]));
if (\in_array("image/webp", $acceptableMimeTypes)) {
$supportsWebP = true;