In Resource::getExceptionHttpHeaders() use Request::BuildFromGlobals

This commit is contained in:
Robbie Mackay 2014-07-23 09:51:34 +12:00 committed by Woody Gilk
parent 31e03c2d36
commit 49b776c495

View File

@ -165,7 +165,7 @@ class Resource
// @codeCoverageIgnoreStart
if ($error === 'invalid_token') {
$authScheme = null;
$request = new Request();
$request = Request::buildFromGlobals();
if ($request->server('PHP_AUTH_USER') !== null) {
$authScheme = 'Basic';
} else {