Skip to content

Commit

Permalink
Merge pull request #1 from evoggy/master
Browse files Browse the repository at this point in the history
Fixed typo that broke authentication via HTTP header
  • Loading branch information
dyorg authored Jun 15, 2016
2 parents fe40847 + 7e90c8d commit c9bdfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TokenAuthentication/TokenSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __invoke(Request $request)
if (isset($this->options['header'])) {
if ($request->hasHeader($this->options['header'])) {
$header = $request->getHeader($this->options['header'])[0];
if (preg_match($this->options['regexp'], $header, $matches)) {
if (preg_match($this->options['regex'], $header, $matches)) {
return $matches[1];
}
}
Expand Down

0 comments on commit c9bdfe4

Please sign in to comment.