From: Brion Vibber Date: Tue, 20 Feb 2007 02:25:27 +0000 (+0000) Subject: Erase the Content-Encoding and Content-Length for the new output buffer/compression... X-Git-Tag: 1.31.0-rc.0~54003 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=e76c53c0656d7584ecc7f7a03181900c36fb965b;p=lhc%2Fweb%2Fwiklou.git 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 --- 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:' ); + } } } }