Skip to content

Commit

Permalink
fix convertBodyToString
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 19, 2018
1 parent 4058b68 commit 0eb7c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ public function endsWith($haystack, $needle)

protected function convertBodyToString(StreamInterface $bodyStream, $readMaximumBytes = 1024 * 1024 * 2): string
{
$body = $bodyStream->read($readMaximumBytes);
$bodyStream->rewind();

$bodyStream->close();
$body = $bodyStream->read($readMaximumBytes);

return $body;
}
Expand Down

0 comments on commit 0eb7c31

Please sign in to comment.