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

This commit is contained in:
jeanfrancois.simon 2012-04-20 13:29:15 +02:00
parent cd783fba06
commit 686653ae3c

View File

@ -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('');
}