summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index 01e37db7..c6414357 100644
--- a/play/index.php
+++ b/play/index.php
@@ -216,9 +216,10 @@ else {
elseif ($start) {
$browser->downloadHeaders($song_name, $song->mime, false, $song->size);
fseek( $fp, $start );
- $range = $start ."-". $song->size . "/" . $song->size;
+ $range = $start ."-". ($song->size-1) . "/" . $song->size;
header("HTTP/1.1 206 Partial Content");
header("Content-Range: bytes=$range");
+ header("Content-Length: ".($song->size-$start));
}
/* Last but not least pump em out */
else {