Skip to content

Commit

Permalink
[BUGFIX] Reverse access token logic
Browse files Browse the repository at this point in the history
This bug was breaking all access token authentication!
  • Loading branch information
lukewertz authored and Mateu Aguiló Bosch committed Feb 15, 2016
1 parent 86f4dae commit 387e4ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function extractToken(RequestInterface $request) {
// If we don't have a $key_name on either the URL or the in the headers,
// then check again using a hyphen instead of an underscore. This is due to
// new versions of Apache not accepting headers with underscores.
if (empty($input[$key_name]) && $request->getHeaders()->get($key_name)->getValueString()) {
if (empty($input[$key_name]) && !$request->getHeaders()->get($key_name)->getValueString()) {
$key_name = str_replace('_', '-', $key_name);
}

Expand Down

0 comments on commit 387e4ea

Please sign in to comment.