[HttpKernel] fixed content-type management for ESIs when charset is part of the response content-type header

This commit is contained in:
Fabien Potencier 2010-07-26 15:10:59 +02:00
parent be57358e71
commit 1caabe1123

View File

@ -139,7 +139,8 @@ class Esi
$type = 'text/html';
}
if (!in_array($type, $this->contentTypes)) {
$parts = implode(';', $type);
if (!in_array($parts[0], $this->contentTypes)) {
return $response;
}