We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent febce38 commit f4557beCopy full SHA for f4557be
1 file changed
src/Request.php
@@ -173,8 +173,9 @@ public static function getRequestedURL() {
173
*
174
* @since 1.0
175
*/
176
- public static function getRequestHeaders() {
+ public static function getHeaders() {
177
if (self::get()->requestHeaders === null || defined('__PHPUNIT_PHAR__')) {
178
+ //Refresh headers if in testing environment.
179
self::get()->requestHeaders = [];
180
181
if (function_exists('apache_request_headers')) {
@@ -210,7 +211,7 @@ public static function getAuthHeader() {
210
211
];
212
$headerVal = '';
213
- $headers = self::getRequestHeaders();
214
+ $headers = self::getHeaders();
215
216
if (isset($headers['authorization'])) {
217
$headerVal = $headers['authorization'];
0 commit comments