소스 검색

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

Fabien Potencier 15 년 전
부모
커밋
1caabe1123
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/Symfony/Components/HttpKernel/Cache/Esi.php

+ 2 - 1
src/Symfony/Components/HttpKernel/Cache/Esi.php

@@ -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;
         }