diff --git a/composer.json b/composer.json index 353aa1d8..28cc02b4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "lncd/Oauth2", "description": "OAuth 2.0 Framework", - "version": "0.2", + "version": "0.2.1", "homepage": "https://github.com/lncd/OAuth2", "license": "MIT", "require": { diff --git a/src/Oauth2/Resource/Server.php b/src/Oauth2/Resource/Server.php index 0ec835a5..694219b0 100644 --- a/src/Oauth2/Resource/Server.php +++ b/src/Oauth2/Resource/Server.php @@ -114,6 +114,9 @@ class Server { $accessToken = null; + + $_SERVER['REQUEST_METHOD'] = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : null; + // Try and get the access token via an access_token or oauth_token parameter switch ($_SERVER['REQUEST_METHOD']) {