1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-02 17:17:48 +01:00

Merge branch 'danog:v8' into story

This commit is contained in:
AhJ 2023-09-03 16:25:19 +03:30 committed by GitHub
commit 863f063c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,14 +106,15 @@ final class ResponseInfo
}
$seek_start = empty($seek_start) ? 0 : \abs(\intval($seek_start));
/*if ($range !== '') {
$isSafari = !empty($headers['user-agent']) && preg_match('/^((?!chrome|android).)*safari/i', $headers['user-agent']);
if ($range !== '' && $isSafari) {
//Safari video streaming fix
$length = ($seek_end - $seek_start + 1);
$maxChunkSize = 10 * 1024 ** 2;
if ($length > $maxChunkSize) {
$seek_end = $seek_start + $maxChunkSize - 1;
}
}*/
}
$this->serve = $method !== 'HEAD';
if ($seek_start > 0 || $seek_end < $size - 1) {