mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[php] fix #3114 stream proxy function using the file cmd corresponds to range request
This commit is contained in:
@@ -1657,6 +1657,16 @@ class elFinderVolumeOneDrive extends elFinderVolumeDriver
|
||||
'headers' => array('Authorization: Bearer ' . $this->token->data->access_token),
|
||||
);
|
||||
|
||||
// to support range request
|
||||
if (func_num_args() > 2) {
|
||||
$opts = func_get_arg(2);
|
||||
} else {
|
||||
$opts = array();
|
||||
}
|
||||
if (!empty($opts['httpheaders'])) {
|
||||
$data['headers'] = array_merge($opts['httpheaders'], $data['headers']);
|
||||
}
|
||||
|
||||
return elFinder::getStreamByUrl($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user