mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
Fix Content-Range header format in HTTP range requests handling
This commit corrects the Content-Range header format in the HTTP range requests handling. The previous format was incorrect, and this update aligns with the HTTP/1.1 specification ('bytes start-end/total'), improving compatibility with clients.
This commit is contained in:
2
do.php
2
do.php
@@ -539,7 +539,7 @@ elseif (ig('down') || ig('downf') ||
|
||||
$partial_length = $range_end - $range + 1;
|
||||
header('HTTP/1.1 206 Partial Content');
|
||||
header("Content-Length: $partial_length");
|
||||
header('Content-Range: bytes ' . ($range - $range_end / $size));
|
||||
header("Content-Range: bytes $range-$range_end/$size");
|
||||
|
||||
fseek($fp, $range);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user