Skip to content

Commit

Permalink
Merge pull request #669 from cmmarslender/5.0
Browse files Browse the repository at this point in the history
Only set Authorization header, rather than replacing all headers...
  • Loading branch information
taylorotwell authored Mar 15, 2018
2 parents 4afb597 + 56ced9a commit 9dbcc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Guards/TokenGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function authenticateViaBearerToken($request)

return $token ? $user->withAccessToken($token) : null;
} catch (OAuthServerException $e) {
$request->headers->replace(['Authorization' => '']);
$request->headers->set( 'Authorization', '', true );

Container::getInstance()->make(
ExceptionHandler::class
Expand Down

0 comments on commit 9dbcc3d

Please sign in to comment.