Update common.php
This commit is contained in:
parent
7d0867ecb4
commit
db2cec514b
|
@ -627,7 +627,7 @@ function main($path)
|
||||||
$t = $s+1;
|
$t = $s+1;
|
||||||
while($s<$t) {
|
while($s<$t) {
|
||||||
$header = [];
|
$header = [];
|
||||||
$e = $s + $block;
|
$e = $s + $block -1;
|
||||||
if (isset($_SERVER['HTTP_RANGE'])) $header = [ 'Range' => $_SERVER['HTTP_RANGE'] ];
|
if (isset($_SERVER['HTTP_RANGE'])) $header = [ 'Range' => $_SERVER['HTTP_RANGE'] ];
|
||||||
else $header = [ 'Range' => 'Range: bytes='.$s.'-'.$e ];//1048575
|
else $header = [ 'Range' => 'Range: bytes='.$s.'-'.$e ];//1048575
|
||||||
//error_log('SERVER:'.json_encode($_SERVER,JSON_PRETTY_PRINT));
|
//error_log('SERVER:'.json_encode($_SERVER,JSON_PRETTY_PRINT));
|
||||||
|
|
Loading…
Reference in New Issue