Experimentally changing how content-length works.
--- a/includes/functions.php Sat Jul 31 11:46:53 2010 -0400
+++ b/includes/functions.php Sat Jul 31 14:12:56 2010 -0400
@@ -3296,10 +3296,12 @@
if ( $return )
{
header('Content-encoding: gzip');
+ header('Content-length: ' . strlen($return));
echo $return;
}
else
{
+ header('Content-length: ' . strlen($gzip_contents));
echo $gzip_contents;
}
}
--- a/plugins/SpecialUpdownload.php Sat Jul 31 11:46:53 2010 -0400
+++ b/plugins/SpecialUpdownload.php Sat Jul 31 14:12:56 2010 -0400
@@ -301,7 +301,7 @@
{
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']));