Procházet zdrojové kódy

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

Fabien Potencier před 15 roky
rodič
revize
1caabe1123
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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;
         }