plugins/SpecialUpdownload.php
changeset 898 c75754f5b1da
parent 832 7152ca0a0ce9
child 953 323c4cd1aa37
--- a/plugins/SpecialUpdownload.php	Sat Apr 11 16:58:32 2009 -0400
+++ b/plugins/SpecialUpdownload.php	Sat Apr 11 22:32:45 2009 -0400
@@ -308,7 +308,9 @@
   {
     header('Content-disposition: attachment, filename="' . $filename . '";');
   }
-  header('Content-length: '.$len);
+  if ( !@$GLOBALS['do_gzip'] )
+    header('Content-length: ' . $len);
+  
   header('Last-Modified: '.enano_date('r', $row['time_id']));
   
   // using this method limits RAM consumption