mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/9627] Make sure range request reads till the end of the file.
PHPBB3-9627
This commit is contained in:
@@ -542,6 +542,12 @@ function http_byte_range($filesize)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We currently do not support range requests that end before the end of the file
|
||||||
|
if ($last_byte_pos != $filesize - 1)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'byte_pos_start' => $first_byte_pos,
|
'byte_pos_start' => $first_byte_pos,
|
||||||
'byte_pos_end' => $last_byte_pos,
|
'byte_pos_end' => $last_byte_pos,
|
||||||
|
Reference in New Issue
Block a user