Skip to content

Commit

Permalink
Rewind response stream before read
Browse files Browse the repository at this point in the history
  • Loading branch information
slavcodev committed Sep 14, 2015
1 parent fc623c1 commit 57b58c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ public function send($method, $payload, $path, $params = [], array $headers = []

$uri = $location->getPath();

// Rewind stream
// see: https://github.com/guzzle/psr7/issues/38
$response->getBody()->rewind();

// Unserialize response body
$content = json_decode($response->getBody()->getContents(), true);

Expand Down
1 change: 0 additions & 1 deletion tests/Util/RebillySignatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

/**
* Class RebillySignatureTest.
* @group wip
*/
class RebillySignatureTest extends TestCase
{
Expand Down

0 comments on commit 57b58c3

Please sign in to comment.