We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56549a8 + f875382 commit d7d250aCopy full SHA for d7d250a
src/Context/JsonApiContext.php
@@ -742,7 +742,8 @@ protected function sendOauthRequest(array $payload)
742
{
743
$url = sprintf('%s%s', $this->baseUrl, $this->parameters['oauth']['uri']);
744
745
- $response = $this->client->post($url, $this->headers, json_encode($payload));
+ $this->headers['Content-Type'] = 'application/x-www-form-urlencoded';
746
+ $response = $this->client->post($url, $this->headers, http_build_query($payload));
747
$responseContent = json_decode($response->getContent());
748
749
// Throw an exception if the statuscode is not 200
0 commit comments