From eb59e628df92b846a7885f06dc9cf1f1f7622201 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 10 Jan 2004 19:42:33 +0000 Subject: [PATCH] Remove sometimes erroneous duplicate Content-encoding header for gzip. As workaround for Apache2+PHP bug, avoid calling flush() in OutputPage::output so headers aren't eaten during cache save. --- includes/Article.php | 7 ------- includes/OutputPage.php | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 7b122d1873..522616dde3 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1166,13 +1166,6 @@ class Article { return true; } else { wfDebug( " tryFileCache() - starting buffer\n" ); - if($cache->useGzip() && wfClientAcceptsGzip()) { - /* For some reason, adding this header line over in - CacheManager::saveToFileCache() fails on my test - setup at home, though it works on the live install. - Make double-sure... --brion */ - header( "Content-Encoding: gzip" ); - } ob_start( array(&$cache, 'saveToFileCache' ) ); } } else { diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6b8aec6743..307148a389 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -284,7 +284,7 @@ class OutputPage { } $sk->outputPage( $this ); - flush(); + # flush(); } function out( $ins ) -- 2.20.1