mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9627] Make sure range request reads till the end of the file.
PHPBB3-9627
This commit is contained in:
parent
18e5570851
commit
7463a988ea
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue