Parcourir la source

[HttpKernel] Fixed wache vary write (fixes #3896).

jeanfrancois.simon il y a 13 ans
Parent
commit
686653ae3c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Symfony/Component/HttpKernel/HttpCache/Store.php

+ 1 - 1
src/Symfony/Component/HttpKernel/HttpCache/Store.php

@@ -167,7 +167,7 @@ class Store implements StoreInterface
         $entries = array();
         $vary = $response->headers->get('vary');
         foreach ($this->getMetadata($key) as $entry) {
-            if (!isset($entry[1]['vary'])) {
+            if (!isset($entry[1]['vary'][0])) {
                 $entry[1]['vary'] = array('');
             }