Skip to content

Commit

Permalink
Merge pull request #310 from christopheg/master
Browse files Browse the repository at this point in the history
Replace getContents() with string cast of getBody
  • Loading branch information
samgavinio authored Mar 1, 2017
2 parents c0edb4c + b694b56 commit 77728f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Zendesk/API/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function send(
} finally {
$client->setDebug(
$request->getHeaders(),
$request->getBody()->getContents(),
$request->getBody(),
isset($response) ? $response->getStatusCode() : null,
isset($response) ? $response->getHeaders() : null,
isset($e) ? $e : null
Expand All @@ -108,6 +108,6 @@ public static function send(

$client->setSideload(null);

return json_decode($response->getBody()->getContents());
return json_decode($response->getBody());
}
}

0 comments on commit 77728f5

Please sign in to comment.