Browse Source

Rewrind after writing to new response stream.

ADmad 8 years ago
parent
commit
98abf93cb0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Http/Client/Response.php

+ 1 - 0
src/Http/Client/Response.php

@@ -151,6 +151,7 @@ class Response extends Message implements ResponseInterface
         }
         $stream = new Stream('php://memory', 'wb+');
         $stream->write($body);
+        $stream->rewind();
         $this->stream = $stream;
     }