download: don't cap video downloads
This doesn't work in Firefox due to a bug in video streaming. Signed-off-by: Varun Patil <radialapps@gmail.com>pull/807/head
parent
068379ee06
commit
134e0f3748
|
@ -155,11 +155,6 @@ class DownloadController extends GenericApiController
|
|||
$seekEnd = (empty($seekEnd)) ? ($size - 1) : min(abs((int) $seekEnd), $size - 1);
|
||||
$seekStart = (empty($seekStart) || $seekEnd < abs((int) $seekStart)) ? 0 : max(abs((int) $seekStart), 0);
|
||||
|
||||
// For videos, use a max of 64MB
|
||||
if (!empty($range) && 'video' === $this->request->getHeader('Sec-Fetch-Dest')) {
|
||||
$seekEnd = min($seekEnd, $seekStart + 64 * 1024 * 1024);
|
||||
}
|
||||
|
||||
// Only send partial content header if downloading a piece of the file
|
||||
if ($seekStart > 0 || $seekEnd < ($size - 1)) {
|
||||
$out->setHeader('HTTP/1.1 206 Partial Content');
|
||||
|
|
Loading…
Reference in New Issue