Skip to content

Commit

Permalink
Fixed failing test for CakeResponse::sharable + spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Costa Caruso committed Jul 3, 2014
1 parent 1164c0b commit 4f559f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Cake/Network/CakeResponse.php
Expand Up @@ -838,6 +838,7 @@ public function sharable($public = null, $time = null) {
$this->_cacheDirectives['private'] = true;
unset($this->_cacheDirectives['public']);
}

$this->maxAge($time);
if (!$time) {
$this->_setCacheControl();
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Network/CakeResponseTest.php
Expand Up @@ -751,7 +751,7 @@ public function testSharable() {
$response = new CakeResponse;
$response->sharable(true, 3600);
$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->sharable(false, 3600);
Expand Down

0 comments on commit 4f559f5

Please sign in to comment.