diff options
Diffstat (limited to 'frontend/pages/builds/download.php')
-rw-r--r-- | frontend/pages/builds/download.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/frontend/pages/builds/download.php b/frontend/pages/builds/download.php index 411efbf..759b5c4 100644 --- a/frontend/pages/builds/download.php +++ b/frontend/pages/builds/download.php @@ -41,6 +41,7 @@ function init_builds_download(&$S) { header('Content-Disposition: attachment; filename="'.(isset($build->name) && strlen($build->name)?str_replace('"', '\"', $build->name):'ingenue-'.$build->id).$ext); } function body_builds_download(&$S) { + ob_end_flush(); // At least in 5.3, we get a 500 Internal Server Error without this readfile($S['builds_download']['file']); // Log the download to db after sending data so hopefully HEAD requests won't artificially inflate the # of dls $S['builds_download']['dl']->write(); |