]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5802 - Incorrect length in http partial content (206) packets.; merged from...
authorskodak <skodak>
Fri, 30 Jun 2006 07:23:08 +0000 (07:23 +0000)
committerskodak <skodak>
Fri, 30 Jun 2006 07:23:08 +0000 (07:23 +0000)
lib/filelib.php

index 7224a36e5c96aef9ccdb4221ba28e9855329baa3..cd47fb1ea3c571ede204c2cf00858653028083da 100644 (file)
@@ -561,9 +561,9 @@ function byteserving_send_file($filename, $mimetype, $ranges) {
     } else { // multiple ranges requested - not tested much
         $totallength = 0;
         foreach($ranges as $range) {
-            $totallength .= strlen($range[0]) + $range[2] - $range[1] + 1;
+            $totallength += strlen($range[0]) + $range[2] - $range[1] + 1;
         }
-        $totallength .= strlen("\r\n--".BYTESERVING_BOUNDARY."--\r\n");
+        $totallength += strlen("\r\n--".BYTESERVING_BOUNDARY."--\r\n");
         @header('HTTP/1.1 206 Partial content');
         @header('Content-Length: '.$totallength);
         @header('Content-Type: multipart/byteranges; boundary='.BYTESERVING_BOUNDARY);