Skip to content

Commit

Permalink
fix header issue
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Aug 11, 2015
1 parent 88eb569 commit 0873be5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All Notable changes to `laravel-responsecache` will be documented in this file

## 1.1.3 - 2015-08-11

### Fixed
- Fixed an issue where the cache header could not be set

## 1.1.2 - 2015-07-22

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ protected function addCachedHeader(Response $response)
{
$clonedResponse = clone $response;

$clonedResponse->header('Laravel-reponsecache', 'cached on '.date('Y-m-d H:i:s'));
$clonedResponse->headers->set('Laravel-reponsecache', 'cached on '.date('Y-m-d H:i:s'));

return $clonedResponse;
}
Expand Down

0 comments on commit 0873be5

Please sign in to comment.