diff options
Diffstat (limited to 'download.inc')
-rwxr-xr-x | download.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/download.inc b/download.inc index 7441442..1b27069 100755 --- a/download.inc +++ b/download.inc @@ -24,6 +24,7 @@ function textbook_companion_download_dependency_file() header('Content-Type: ' . $dependency_file_data->filemime); header('Content-disposition: attachment; filename="' . $dependency_file_data->filename . '"'); header('Content-Length: ' . filesize($root_path . $dependency_file_data->filepath)); + ob_clean(); readfile($root_path . $dependency_file_data->filepath); exit; } |