Skip to content

Commit

Permalink
Merge b7fb861 into 7c7724b
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks committed Jul 17, 2015
2 parents 7c7724b + b7fb861 commit ecc5c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Http/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function write($string)
*/
public function getContents()
{
if (!$this->isReadable() || ($contents = stream_get_contents($this->stream)) === false) {
if (!$this->isReadable() || ($contents = stream_get_contents($this->stream, -1, 0)) === false) {
throw new RuntimeException('Could not get contents of stream');
}

Expand Down

0 comments on commit ecc5c1b

Please sign in to comment.