plugins/SpecialUpdownload.php
changeset 1359 53c7e3cc7fb5
parent 1283 cdbc7f48ab72
child 1360 570abc94bd7f
--- a/plugins/SpecialUpdownload.php	Mon Jan 16 09:22:24 2012 -0500
+++ b/plugins/SpecialUpdownload.php	Mon Jan 16 09:23:20 2012 -0500
@@ -301,19 +301,20 @@
 	{
 		header('Content-disposition: attachment, filename="' . $filename . '";');
 	}
-	if ( !@$GLOBALS['do_gzip'] )
+	//if ( !@$GLOBALS['do_gzip'] )
 		header('Content-length: ' . $len);
 	
 	header('Last-Modified: '.enano_date('r', $row['time_id']));
 	
 	// using this method limits RAM consumption
+	@ob_end_flush();
 	while ( !feof($handle) )
 	{
 		echo fread($handle, 512000);
 	}
 	fclose($handle);
 	
-	gzip_output();
+	$db->close();
 	
 	exit;