Skip to content

Commit

Permalink
Merge pull request #381 from stevenmaguire/add-content-header-access-…
Browse files Browse the repository at this point in the history
…token

adding content-type header to request to retrieve access token
  • Loading branch information
ramsey committed Jul 16, 2015
2 parents c3de21d + c1e0d3c commit 088f554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ protected function getAccessTokenBody(array $params)
*/
protected function getAccessTokenOptions(array $params)
{
$options = [];
$options = ['headers' => ['content-type' => 'application/x-www-form-urlencoded']];

if ($this->getAccessTokenMethod() === self::METHOD_POST) {
$options['body'] = $this->getAccessTokenBody($params);
Expand Down

0 comments on commit 088f554

Please sign in to comment.