We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 408768d commit 0dff0b9Copy full SHA for 0dff0b9
1 file changed
src/Handle/Header.php
@@ -10,10 +10,14 @@ public function handle()
10
{
11
$authorization = $this->app->request->header('authorization');
12
13
- if (!$authorization || strpos($authorization, 'Bearer ') !== 0) {
+ if (!$authorization) {
14
return;
15
}
16
17
- return substr($authorization, 7);
+ if (strpos($authorization, 'Bearer ') === 0) {
18
+ return substr($authorization, 7);
19
+ } else {
20
+ return $authorization;
21
+ }
22
23
0 commit comments