From 4d7170217da3a9361d2f7ebb135dea77d5372870 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 14 Jan 2006 18:16:28 +0000 Subject: fixed the seeking bug and a few other minor ones thank Sven F. --- play/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'play') 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 { -- cgit