Skip to content

Commit

Permalink
Merge pull request #508 from akaraznevic/develop
Browse files Browse the repository at this point in the history
Case insensitive Bearer token header name
  • Loading branch information
bshaffer committed Jan 27, 2015
2 parents bb254d3 + ba716d4 commit 5ebe653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OAuth2/TokenType/Bearer.php
Expand Up @@ -91,7 +91,7 @@ public function getAccessTokenParameter(RequestInterface $request, ResponseInter

// HEADER: Get the access token from the header
if (!empty($headers)) {
if (!preg_match('/' . $this->config['token_bearer_header_name'] . '\s(\S+)/', $headers, $matches)) {
if (!preg_match('/' . $this->config['token_bearer_header_name'] . '\s(\S+)/i', $headers, $matches)) {
$response->setError(400, 'invalid_request', 'Malformed auth header');

return null;
Expand Down

0 comments on commit 5ebe653

Please sign in to comment.