Update common.php

This commit is contained in:
qkqpttgf 2020-03-05 14:41:09 +08:00 committed by GitHub
parent fbfc44c487
commit d4011ee755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -643,9 +643,11 @@ function main($path)
$range = $head['Content-Range'];
$e = explode("-", $range)[1];
$t = explode("/", $e)[1];
$e = explode("-", $e)[0];
$e = explode("/", $e)[0];
error_log('Range:'.$head['Content-Range'].' end:'.$e.' total:'.$t);
//if ($e+1==$t)
if ($e+1==$t) $response['stat'] = 200;
@ob_flush();
flush();
//error_log('Header2usr:'.json_encode($head,JSON_PRETTY_PRINT));
return output( $response['body'], $response['stat'], $head, true );
} else return output('', 302, [ 'Location' => $files['@microsoft.graph.downloadUrl'] ]);