Wikia code/includes/OutputHandler.php
< Wikia code | includes
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.43.0. |
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\OutputHandler.php 2011-07-18 22:31:28.031250000 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\OutputHandler.php 2011-08-17 15:28:46.396484400 +0100
@@ -114,9 +114,11 @@
* Add a Content-Length header if possible. This makes it cooperate with squid better.
*/
function wfDoContentLength( $length ) {
- if ( !headers_sent() && $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.0' ) {
+ /* Wikia change - begin */
+ if ( !headers_sent() ) {
header( "Content-Length: $length" );
}
+ /* Wikia change - end */
}
/**