Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 4134c5f

Browse files
committed
:octocat: +Accept-Encoding
1 parent 9b17618 commit 4134c5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Core/OAuth2ClientCredentialsTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function getClientCredentialsToken(array $scopes = null):AccessToken{
4242
->createRequest('POST', $this->clientCredentialsTokenURL ?? $this->accessTokenURL)
4343
->withHeader('Authorization', 'Basic '.base64_encode($this->options->key.':'.$this->options->secret))
4444
->withHeader('Content-Type', 'application/x-www-form-urlencoded')
45+
->withHeader('Accept-Encoding', 'identity')
4546
->withBody($this->streamFactory->createStream(http_build_query($params, '', '&', PHP_QUERY_RFC1738)))
4647
;
4748

0 commit comments

Comments
 (0)