浏览代码

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

Kris Wallsmith 14 年之前
父节点
当前提交
fb005396dc
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/Symfony/Tests/Component/HttpKernel/HttpCache/HttpCacheTest.php

+ 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');