http://atutor.ca/atutor/mantis/view.php?id=4530
authorharris wong <hwong@ocad.ca>
Mon, 13 Sep 2010 18:58:52 +0000 (18:58 -0000)
committerharris wong <hwong@ocad.ca>
Mon, 13 Sep 2010 18:58:52 +0000 (18:58 -0000)
docs/get.php

index b995dc5..66c3da7 100644 (file)
@@ -120,7 +120,11 @@ if (file_exists($real) && (substr($real, 0, strlen(AT_CONTENT_DIR)) == AT_CONTEN
        header('x-Sendfile: ', TRUE); // if we get here then it didn't work
 
        header('Content-Type: '.$ext);
-       header('Content-length: '.filesize($real));
+    //a hack for http://atutor.ca/atutor/mantis/view.php?id=4531
+    //@harris
+    if ($pathinfo['extension']=='mp3') {
+        header('Content-length: '.filesize($real));
+    }
 
        @readfile($real);
        exit;