http://www.atutor.ca/atutor/mantis/view.php?id=4466
authorCindy Li <cli@ocad.ca>
Mon, 9 Aug 2010 14:12:04 +0000 (14:12 -0000)
committerCindy Li <cli@ocad.ca>
Mon, 9 Aug 2010 14:12:04 +0000 (14:12 -0000)
docs/get.php

index 1959c92..cae0a00 100644 (file)
@@ -119,6 +119,7 @@ if (file_exists($real) && (substr($real, 0, strlen(TR_CONTENT_DIR)) == TR_CONTEN
        header('x-Sendfile: ', TRUE); // if we get here then it didn't work
 
        header('Content-Type: '.$ext);
+       header('Content-length: '.filesize($real));
 
        @readfile($real);
        exit;