Bastian Hofmann
... ... @@ -256,7 +256,9 @@ class OAuth2_Service
if ($token->getLifeTime() && $token->getLifeTime() < time()) {
$token = $this->refreshAccessToken($token);
}
$parameters = null;
if (!$this->_configuration->getUseOnlyAuthorizationHeader()){
/*
http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-5.1
... ... @@ -281,8 +283,6 @@ class OAuth2_Service
$endpoint .= (strpos($endpoint, '?') !== false ? '&' : '?') . http_build_query($uriParameters);
}
$parameters = null;
$header = array('Authorization: OAuth ' . $token->getAccessToken());
$http = new OAuth2_HttpClient($endpoint, $method, $parameters, $header);
... ...