Bastian Hofmann
... ... @@ -257,6 +257,8 @@ class OAuth2_Service
$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);
... ...