Skip to content

Commit

Permalink
Apply fixes from StyleCI (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed May 23, 2020
1 parent d774de7 commit d0628aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Http/Middleware/ReferrerPolicy.php
Expand Up @@ -16,12 +16,12 @@ class ReferrerPolicy
*/
public function handle($request, Closure $next)
{
$response = $next($request);
$response = $next($request);

if (get_class($response) != StreamedResponse::class) {
$response->header('Referrer-Policy', 'no-referrer, strict-origin-when-cross-origin');
}
if (get_class($response) != StreamedResponse::class) {
$response->header('Referrer-Policy', 'no-referrer, strict-origin-when-cross-origin');
}

return $response;
return $response;
}
}

0 comments on commit d0628aa

Please sign in to comment.