Erase the Content-Encoding and Content-Length for the new output buffer/compression...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 20 Feb 2007 02:25:27 +0000 (02:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 20 Feb 2007 02:25:27 +0000 (02:25 +0000)
Fixes Special:Export and probably other things when the HTTP 1.0 stuff engages

includes/GlobalFunctions.php

index 1bf50e1..e9051f9 100644 (file)
@@ -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:' );
+                       }
                }
        }
 }