Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -104,6 +104,12 @@ class _Ranges extends Response
|
||||
/* Otherwise send the 206 header */
|
||||
else
|
||||
{
|
||||
/* If the end range is larger than the filesize, correct the end range to the filesize */
|
||||
if ( $end_range > $filesize )
|
||||
{
|
||||
$size = $filesize - 1;
|
||||
}
|
||||
|
||||
\IPS\Log::debug( "Sending requested range with 206 header: {$start_range} - {$size} out of {$filesize}", 'ranges' );
|
||||
|
||||
\IPS\Output::i()->sendStatusCodeHeader( 206 );
|
||||
|
||||
Reference in new issue
Block a user