Skip to content

Commit

Permalink
Fixed stream constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
debuss committed Aug 17, 2019
1 parent dd8c478 commit 4837d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Stream.php
Expand Up @@ -33,7 +33,7 @@ public function __construct($stream, string $mode = 'r+')
$this->stream = $stream;
} else {
$this->stream = fopen('php://temp', $mode);
$this->stream->write($stream);
$this->write($stream);
}
}

Expand Down

0 comments on commit 4837d62

Please sign in to comment.