Skip to content

Commit

Permalink
[HttpKernel] Fixed wache vary write (fixes #3896).
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfrancois.simon committed Apr 20, 2012
1 parent cd783fb commit 686653a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/HttpCache/Store.php
Expand Up @@ -167,7 +167,7 @@ public function write(Request $request, Response $response)
$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('');
}

Expand Down

0 comments on commit 686653a

Please sign in to comment.