Update common.php

This commit is contained in:
qkqpttgf 2020-03-05 12:29:26 +08:00 committed by GitHub
parent 9f9d4e48f8
commit d4fab49ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ function main($path)
if (isset($_SERVER['HTTP_RANGE'])) $header = [ 'Range' => $_SERVER['HTTP_RANGE'] ];
//else $header = [ 'Range' => 'Range: bytes=0-1048575' ];
$response = curl_request( $files['@microsoft.graph.downloadUrl'], '', $header );
return output( base64_encode($response['body']), $response['stat'], ['Content-Type' => 'application/octet-stream'], true );
return output( $response['body'], $response['stat'], ['Content-Type' => 'application/octet-stream'], true );
} else return output('', 302, [ 'Location' => $files['@microsoft.graph.downloadUrl'] ]);
}
}