Created
November 2, 2015 19:10
-
-
Save broklyngagah/5a34e2249bc8aa83c0db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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