Skip to content

Commit

Permalink
Update SetHeaderMiddleware.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Oct 23, 2023
1 parent 5e2029c commit a038695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middlewares/SetHeaderMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function handle(Request $request, Closure $next)

protected function set(Request $request)
{
if ($request->headers->missing(Header::ACCEPT)) {
if (! $request->hasHeader(Header::ACCEPT)) {
$request->headers->set(Header::ACCEPT, 'application/json');
}
}
Expand Down

0 comments on commit a038695

Please sign in to comment.