autism
This commit is contained in:
parent
3643b79b4b
commit
e494e18971
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
// do NOT append / at the end
|
// do NOT append / at the end
|
||||||
// Eg: /home/will/Downloads
|
// Eg: /home/will/Downloads
|
||||||
$folder_base = "/home/will/Downloads";
|
$folder_base = "/home/will/Music";
|
||||||
$items_per_page = 20;
|
$items_per_page = 20;
|
||||||
$max_results = 100; // will break; once we reach limit, -1 for no limit
|
$max_results = 100; // will break; once we reach limit, -1 for no limit
|
||||||
$motd = "get fucked";
|
$motd = "get fucked";
|
||||||
|
@ -438,7 +438,7 @@ if(is_dir($realpath)){
|
||||||
$range >= 0 &&
|
$range >= 0 &&
|
||||||
$range < $filesize
|
$range < $filesize
|
||||||
){
|
){
|
||||||
|
|
||||||
http_response_code(206); // partial content
|
http_response_code(206); // partial content
|
||||||
header("Content-Range: bytes " . $range . "-" . ($filesize - 1) . "/" . $filesize);
|
header("Content-Range: bytes " . $range . "-" . ($filesize - 1) . "/" . $filesize);
|
||||||
header("Content-Length: " . $filesize - $range);
|
header("Content-Length: " . $filesize - $range);
|
||||||
|
|
Loading…
Reference in New Issue