Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1599,7 +1599,13 @@ |
1600 | 1600 | if( $status['name'] == 'ob_gzhandler' ) { |
1601 | 1601 | // Reset the 'Content-Encoding' field set by this handler |
1602 | 1602 | // so we can start fresh. |
1603 | | - header( 'Content-Encoding:' ); |
| 1603 | + if ( function_exists( 'header_remove' ) ) { |
| 1604 | + // Available since PHP 5.3.0 |
| 1605 | + header_remove( 'Content-Encoding' ); |
| 1606 | + } else { |
| 1607 | + // We need to provide a valid content-coding. See bug 28069 |
| 1608 | + header( 'Content-Encoding: identity' ); |
| 1609 | + } |
1604 | 1610 | break; |
1605 | 1611 | } |
1606 | 1612 | } |