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.
1 parent c93a50a commit f875382Copy full SHA for f875382
src/Context/JsonApiContext.php
@@ -732,7 +732,8 @@ protected function sendOauthRequest(array $payload)
732
{
733
$url = sprintf('%s%s', $this->baseUrl, $this->parameters['oauth']['uri']);
734
735
- $response = $this->client->post($url, $this->headers, json_encode($payload));
+ $this->headers['Content-Type'] = 'application/x-www-form-urlencoded';
736
+ $response = $this->client->post($url, $this->headers, http_build_query($payload));
737
$responseContent = json_decode($response->getContent());
738
739
// Throw an exception if the statuscode is not 200
0 commit comments