projects
/
atutor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9400ad9
)
http://atutor.ca/atutor/mantis/view.php?id=4530
author
harris wong
<hwong@ocad.ca>
Mon, 13 Sep 2010 18:58:52 +0000
(18:58 -0000)
committer
harris wong
<hwong@ocad.ca>
Mon, 13 Sep 2010 18:58:52 +0000
(18:58 -0000)
docs/get.php
patch
|
blob
|
history
diff --git
a/docs/get.php
b/docs/get.php
index
b995dc5
..
66c3da7
100644
(file)
--- a/
docs/get.php
+++ b/
docs/get.php
@@
-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;