Skip to content

Commit

Permalink
Merge pull request #255 from bajb/master
Browse files Browse the repository at this point in the history
Send headers with auth getAccessToken requests
  • Loading branch information
ramsey committed Apr 2, 2015
2 parents 6930258 + e73c7ac commit a190f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ public function getAccessToken($grant = 'authorization_code', $params = [])
// No providers included with this library use get but 3rd parties may
$client = $this->getHttpClient();
$client->setBaseUrl($this->urlAccessToken() . '?' . $this->httpBuildQuery($requestParams, '', '&'));
$request = $client->get(null, null, $requestParams)->send();
$request = $client->get(null, $this->getHeaders(), $requestParams)->send();
$response = $request->getBody();
break;
// @codeCoverageIgnoreEnd
case 'POST':
$client = $this->getHttpClient();
$client->setBaseUrl($this->urlAccessToken());
$request = $client->post(null, null, $requestParams)->send();
$request = $client->post(null, $this->getHeaders(), $requestParams)->send();
$response = $request->getBody();
break;
// @codeCoverageIgnoreStart
Expand Down

0 comments on commit a190f87

Please sign in to comment.