We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a8645 commit 03d4ffeCopy full SHA for 03d4ffe
src/Curl/Curl.php
@@ -305,7 +305,7 @@ public function download($url, $mixed_filename)
305
306
$mode = 'wb';
307
// Attempt to resume download only when a temporary download file exists and is not empty.
308
- if (file_exists($download_filename) && $filesize = filesize($download_filename)) {
+ if (is_file($download_filename) && $filesize = filesize($download_filename)) {
309
$mode = 'ab';
310
$first_byte_position = $filesize;
311
$range = $first_byte_position . '-';
0 commit comments