Skip to content

Commit

Permalink
fixed style
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Apr 27, 2017
1 parent 9669821 commit f386a33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Middleware/CacheMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function handle(ServerRequestInterface $request, DelegateInterface $next)
$cache = cache()->getItem($key);
if ($cache->isHit()) {
$value = Json::decode($cache->get());

return json($value)
->withHeader('X-Cache', $key);
}
Expand Down

0 comments on commit f386a33

Please sign in to comment.