diff --git a/src/OAuth/OAuth1/Service/AbstractService.php b/src/OAuth/OAuth1/Service/AbstractService.php index 582b4674..97cb30b5 100644 --- a/src/OAuth/OAuth1/Service/AbstractService.php +++ b/src/OAuth/OAuth1/Service/AbstractService.php @@ -213,8 +213,8 @@ protected function buildAuthorizationHeaderForAPIRequest( $authParameters = array_merge($authParameters, array('oauth_token' => $token->getAccessToken())); - $authParameters = (is_array($bodyParams)) ? array_merge($authParameters, $bodyParams) : $authParameters; - $authParameters['oauth_signature'] = $this->signature->getSignature($uri, $authParameters, $method); + $signatureParams = (is_array($bodyParams)) ? array_merge($authParameters, $bodyParams) : $authParameters; + $authParameters['oauth_signature'] = $this->signature->getSignature($uri, $signatureParams, $method); if (isset($bodyParams['oauth_session_handle'])) { $authParameters['oauth_session_handle'] = $bodyParams['oauth_session_handle'];