Update common.php

This commit is contained in:
qkqpttgf 2020-03-05 15:59:02 +08:00 committed by GitHub
parent e859347ae3
commit ec73db9f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -651,10 +651,10 @@ function main($path)
$t = explode("/", $e)[1];
$e = explode("/", $e)[0];
error_log('Range:'.$head['Content-Range'].' end:'.$e.' total:'.$t);
if ($s==0) { $sendHeaders = array();
/*if ($s==0) { $sendHeaders = array();
foreach ($head as $headerName => $headerVal) {
header($headerName . ': ' . $headerVal, true);
} }
} } */
$s = $e+1;
if ($s==$t) $response['stat'] = 200;
ob_clean();