Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 12, 2017
1 parent 6a1480a commit 9d6001b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Middleware/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function handle($request, Closure $next, $options = [])
$options = $parsedOptions;
}

if (true === ($options['etag'] ?? false)) {
if (isset($options['etag']) && true === $options['etag']) {
$options['etag'] = md5($response->getContent());
}

Expand Down

0 comments on commit 9d6001b

Please sign in to comment.