This commit is contained in:
lolcat 2024-03-21 22:03:37 -04:00
parent 3643b79b4b
commit e494e18971
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
// do NOT append / at the end
// Eg: /home/will/Downloads
$folder_base = "/home/will/Downloads";
$folder_base = "/home/will/Music";
$items_per_page = 20;
$max_results = 100; // will break; once we reach limit, -1 for no limit
$motd = "get fucked";
@ -438,7 +438,7 @@ if(is_dir($realpath)){
$range >= 0 &&
$range < $filesize
){
http_response_code(206); // partial content
header("Content-Range: bytes " . $range . "-" . ($filesize - 1) . "/" . $filesize);
header("Content-Length: " . $filesize - $range);