# HG changeset patch # User Dan Fuhry # Date 1280599976 14400 # Node ID cdbc7f48ab729450bf523474ab910be6b36ccdb1 # Parent 49e90e1d9756ea0270b7dc8bedf81b1796e0f88f Experimentally changing how content-length works. diff -r 49e90e1d9756 -r cdbc7f48ab72 includes/functions.php --- 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; } } diff -r 49e90e1d9756 -r cdbc7f48ab72 plugins/SpecialUpdownload.php --- 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']));