Explorar o código

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

Kris Wallsmith %!s(int64=14) %!d(string=hai) anos
pai
achega
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)
         {
             $response->headers->set('Last-Modified', $time->format(DATE_RFC2822));
+            $response->headers->set('Cache-Control', 'public');
             switch (++$count) {
                 case 1:
                     $response->setContent('first response');