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

Commit bc852fd

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/OAuth1Provider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function getRequestToken():AccessToken{
7575
* @throws \chillerlan\OAuth\Core\ProviderException
7676
*/
7777
protected function parseTokenResponse(ResponseInterface $response, bool $checkCallbackConfirmed = null):AccessToken{
78-
parse_str($response->getBody()->getContents(), $data);
78+
parse_str(Psr7\decompress_content($response), $data);
7979

8080
if(!$data || !is_array($data)){
8181
throw new ProviderException('unable to parse token response');

0 commit comments

Comments
 (0)