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

Commit 4a14b7b

Browse files
committed
:octocat: decompress response
1 parent f529a48 commit 4a14b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/OAuth2Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getAuthURL(array $params = null, array $scopes = null):UriInterf
8585
* @throws \chillerlan\OAuth\Core\ProviderException
8686
*/
8787
protected function parseTokenResponse(ResponseInterface $response):AccessToken{
88-
$data = Psr7\get_json($response, true);
88+
$data = json_decode(Psr7\decompress_content($response), true); // silly amazon...
8989

9090
if(!is_array($data)){
9191
throw new ProviderException('unable to parse token response');

0 commit comments

Comments
 (0)