Skip to content

Instantly share code, notes, and snippets.

@broklyngagah
Created November 2, 2015 19:10
Show Gist options
  • Save broklyngagah/5a34e2249bc8aa83c0db to your computer and use it in GitHub Desktop.
Save broklyngagah/5a34e2249bc8aa83c0db to your computer and use it in GitHub Desktop.
public function headers($name, $default = null)
{
if($name == self::AUTH_CONST_NAME) {
$all = apache_request_headers();
if (isset($all['Authorization'])) {
return $all['Authorization'];
}
}
return $this->getHeader($name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment