Browse Source

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

jeanfrancois.simon 13 năm trước cách đây
mục cha
commit
686653ae3c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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('');
             }