浏览代码

[HttpKernel] Fixed cache vary lookup (fixes #3896).

jeanfrancois.simon 13 年之前
父节点
当前提交
cd783fba06
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/HttpKernel/HttpCache/Store.php

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

@@ -110,7 +110,7 @@ class Store implements StoreInterface
         // find a cached entry that matches the request.
         $match = null;
         foreach ($entries as $entry) {
-            if ($this->requestsMatch(isset($entry[1]['vary']) ? $entry[1]['vary'][0] : '', $request->headers->all(), $entry[0])) {
+            if ($this->requestsMatch(isset($entry[1]['vary'][0]) ? $entry[1]['vary'][0] : '', $request->headers->all(), $entry[0])) {
                 $match = $entry;
 
                 break;