Skip to content

Commit

Permalink
Use 0 offset in file_get_contents (#18)
Browse files Browse the repository at this point in the history
Use 0 offset in file_get_contents
  • Loading branch information
ArthurHoaro authored Jan 17, 2020
2 parents 7276430 + 1635b80 commit 9a7a21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebThumbnailer/Application/WebAccess/WebAccessPHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getContent($url, $timeout = null, $maxBytes = null, $dlCallback
}

$context = stream_context_create($context);
$content = file_get_contents($finalUrl, false, $context, -1, $maxBytes);
$content = file_get_contents($finalUrl, false, $context, 0, $maxBytes);

return array($headers, $content);
}
Expand Down

0 comments on commit 9a7a21d

Please sign in to comment.