From 9df336691c741d120cd5d1a551bdb52f2ddfc325 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 26 Jun 2020 08:35:20 +0200 Subject: only give size if file is already downloaded --- mirror.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mirror.php b/mirror.php index 0cc2836..5a0daf2 100644 --- a/mirror.php +++ b/mirror.php @@ -74,14 +74,6 @@ } } if (! file_exists($pfad)) { - $size = shell_exec( - "curl -ILs -A 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0' '".$quelle."' " . - "| sed '" . - "s/^Content-Length: //;t;d" . - "'" - ); - if (! empty($size)) - header('Content-Length: ' . $size); passthru( "mkdir -p '".dirname($pfad)."'; ". "( ". -- cgit v1.2.3-70-g09d2