Update common.php
This commit is contained in:
parent
998e97aa99
commit
0a3eb7f459
|
@ -624,7 +624,7 @@ function main($path)
|
|||
$header = [];
|
||||
if (isset($_SERVER['HTTP_RANGE'])) $header = [ 'Range' => $_SERVER['HTTP_RANGE'] ];
|
||||
else $header = [ 'Range' => 'Range: bytes=0-102399' ];//1048575
|
||||
error_log('Header2MS:'.$header);
|
||||
error_log('Header2MS:'.json_encode($header,JSON_PRETTY_PRINT));
|
||||
$response = curl_request( $files['@microsoft.graph.downloadUrl'], '', $header );
|
||||
foreach (explode("\r\n", $response['header']) as $h) {
|
||||
$a=explode(": ", $h);
|
||||
|
@ -633,7 +633,7 @@ function main($path)
|
|||
//Content-Length: 387780
|
||||
//Content-Range: bytes 0-387779/387780
|
||||
// $head['Content-Range']
|
||||
error_log('Header2usr:'.$head);
|
||||
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'] ]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue