Skip to content

Commit

Permalink
Improves CS.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed Dec 15, 2015
1 parent 8057b7b commit dea87ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Middleware/NotModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ class NotModified
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return \Illuminate\Http\Response
*/
public function handle($request, Closure $next)
{
$response = $next($request);

if ( ! $response->headers->has('Etag')) {
if (! $response->headers->has('Etag')) {
$response->setEtag(md5($response->getContent()));
}

Expand Down

0 comments on commit dea87ed

Please sign in to comment.