From b480373249433ab687e4231b5921a2bca4999314 Mon Sep 17 00:00:00 2001 From: Mikica Ivosevic Date: Wed, 23 Mar 2016 12:08:45 +0100 Subject: [PATCH] bug fix --- src/Exception/OAuthException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception/OAuthException.php b/src/Exception/OAuthException.php index dd9ad62d..3678984b 100644 --- a/src/Exception/OAuthException.php +++ b/src/Exception/OAuthException.php @@ -122,7 +122,7 @@ class OAuthException extends \Exception // @codeCoverageIgnoreStart if ($this->errorType === 'invalid_client') { $authScheme = null; - $request = new Request(); + $request = Request::createFromGlobals(); if ($request->getUser() !== null) { $authScheme = 'Basic'; } else {