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

This commit is contained in:
jeanfrancois.simon 2012-04-19 11:41:27 +02:00
parent 85000fc288
commit cd783fba06

View File

@ -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;