Skip to content

Commit

Permalink
fix for BufferStream
Browse files Browse the repository at this point in the history
  • Loading branch information
fdreamsu authored Sep 24, 2019
1 parent f99fe17 commit 34ccce4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ function __construct(Request $request)
$body = '';
}

$this->withBody(new BufferStream($body));
$buffer = new BufferStream();
$buffer->write($body);
$this->withBody($buffer);

/** data parser */
$this->__stringDataParserInitialization($this->body);
Expand Down

0 comments on commit 34ccce4

Please sign in to comment.