From e76c53c0656d7584ecc7f7a03181900c36fb965b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 20 Feb 2007 02:25:27 +0000 Subject: [PATCH] Erase the Content-Encoding and Content-Length for the new output buffer/compression handler. Fixes Special:Export and probably other things when the HTTP 1.0 stuff engages --- includes/GlobalFunctions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 1bf50e1ef7..e9051f9e92 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1134,6 +1134,11 @@ function wfResetOutputBuffers( $resetGzipEncoding=true ) { // so we can start fresh. header( 'Content-Encoding:' ); } + if( $status['name'] == 'wfOutputHandler' ) { + // And the custom handler in 1.10+ adds a Content-Length + header( 'Content-Encoding:' ); + header( 'Content-Length:' ); + } } } } -- 2.20.1