Skip to content

Commit 1a50ded

Browse files
committed
fix: issue#13
1 parent cf00044 commit 1a50ded

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Upwork/API/AuthTypes/OAuth2ClientLib.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ public function request($type, $url, $params = array(), string $tenantId = null)
9292
// but we need a raw json that will be decoded and returned as StdClass object
9393
$response = $this->getInstance()->getResponse($request);
9494
} catch (\GuzzleHttp\Exception\ClientException $e) {
95-
$eResponse = $e->getResponse();
96-
$response = $eResponse->getBody()->getContents();
95+
$response = $e->getResponse();
9796
} catch (\Exception $e) {
9897
$response = $e->getResponseBody();
9998
}

0 commit comments

Comments
 (0)