mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed failing test for CakeResponse::sharable + spacing
This commit is contained in:
parent
1164c0bcad
commit
4f559f5cc9
2 changed files with 2 additions and 1 deletions
|
@ -838,6 +838,7 @@ class CakeResponse {
|
||||||
$this->_cacheDirectives['private'] = true;
|
$this->_cacheDirectives['private'] = true;
|
||||||
unset($this->_cacheDirectives['public']);
|
unset($this->_cacheDirectives['public']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->maxAge($time);
|
$this->maxAge($time);
|
||||||
if (!$time) {
|
if (!$time) {
|
||||||
$this->_setCacheControl();
|
$this->_setCacheControl();
|
||||||
|
|
|
@ -751,7 +751,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$response = new CakeResponse;
|
$response = new CakeResponse;
|
||||||
$response->sharable(true, 3600);
|
$response->sharable(true, 3600);
|
||||||
$headers = $response->header();
|
$headers = $response->header();
|
||||||
$this->assertEquals('public, s-maxage=3600', $headers['Cache-Control']);
|
$this->assertEquals('public, max-age=3600', $headers['Cache-Control']);
|
||||||
|
|
||||||
$response = new CakeResponse;
|
$response = new CakeResponse;
|
||||||
$response->sharable(false, 3600);
|
$response->sharable(false, 3600);
|
||||||
|
|
Loading…
Reference in a new issue