Skip to content

Commit 0dff0b9

Browse files
authored
Update Header.php
1 parent 408768d commit 0dff0b9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Handle/Header.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ public function handle()
1010
{
1111
$authorization = $this->app->request->header('authorization');
1212

13-
if (!$authorization || strpos($authorization, 'Bearer ') !== 0) {
13+
if (!$authorization) {
1414
return;
1515
}
1616

17-
return substr($authorization, 7);
17+
if (strpos($authorization, 'Bearer ') === 0) {
18+
return substr($authorization, 7);
19+
} else {
20+
return $authorization;
21+
}
1822
}
1923
}

0 commit comments

Comments
 (0)