Browse Source

[HttpKernel] fixed another test where an explicit cache-control header is necessary

Kris Wallsmith 14 years ago
parent
commit
fb005396dc

+ 1 - 0
tests/Symfony/Tests/Component/HttpKernel/HttpCache/HttpCacheTest.php

@@ -693,6 +693,7 @@ class HttpCacheTest extends HttpCacheTestCase
         $this->setNextResponse(200, array(), 'Hello World', function ($request, $response) use ($time, &$count)
         $this->setNextResponse(200, array(), 'Hello World', function ($request, $response) use ($time, &$count)
         {
         {
             $response->headers->set('Last-Modified', $time->format(DATE_RFC2822));
             $response->headers->set('Last-Modified', $time->format(DATE_RFC2822));
+            $response->headers->set('Cache-Control', 'public');
             switch (++$count) {
             switch (++$count) {
                 case 1:
                 case 1:
                     $response->setContent('first response');
                     $response->setContent('first response');