kiwnix

Updated to be compatible with Bearer token draft 03 and up. (Using "Authorizatio…

…n: Bearer X" instead of "Authorization: Oauth X" http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08
... ... @@ -296,7 +296,7 @@ class OAuth2_Service
$endpoint .= (strpos($endpoint, '?') !== false ? '&' : '?') . http_build_query($uriParameters);
}
$headers = array_merge(array('Authorization: OAuth ' . $token->getAccessToken()), $additionalHeaders);
$headers = array_merge(array('Authorization: Bearer ' . $token->getAccessToken()), $additionalHeaders);
$http = new OAuth2_HttpClient($endpoint, $method, $parameters, $headers);
$http->execute();
... ...