Update common.php

This commit is contained in:
qkqpttgf 2020-03-05 15:47:13 +08:00 committed by GitHub
parent 7d0867ecb4
commit db2cec514b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ function main($path)
$t = $s+1;
while($s<$t) {
$header = [];
$e = $s + $block;
$e = $s + $block -1;
if (isset($_SERVER['HTTP_RANGE'])) $header = [ 'Range' => $_SERVER['HTTP_RANGE'] ];
else $header = [ 'Range' => 'Range: bytes='.$s.'-'.$e ];//1048575
//error_log('SERVER:'.json_encode($_SERVER,JSON_PRETTY_PRINT));