# HG changeset patch # User Dan Fuhry # Date 1280539890 14400 # Node ID 0bc945385d7479a4a578f5c3ba2b2a9289ce7697 # Parent 9a4b0c3056ac09b6e98f6706c5fe37b6a30dea58 Enabled content-length in Special:DownloadFile even when gzip is on. Should probably check the http spec to see if Content-Length should match the decoded or encoded length diff -r 9a4b0c3056ac -r 0bc945385d74 plugins/SpecialUpdownload.php --- a/plugins/SpecialUpdownload.php Fri Jul 30 15:49:23 2010 -0400 +++ b/plugins/SpecialUpdownload.php Fri Jul 30 21:31:30 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']));