소스 검색

[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.
         // find a cached entry that matches the request.
         $match = null;
         $match = null;
         foreach ($entries as $entry) {
         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;
                 $match = $entry;
 
 
                 break;
                 break;