WordPress.org

WordPress MU

Changeset 1916


Ignore:
Timestamp:
08/04/09 16:32:51 (5 years ago)
Author:
donncha
Message:

Don't show Content-Length on IIS servers. See #1078

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-content/blogs.php

    r1844 r1916  
    8383} 
    8484@header( 'Content-type: ' . $mimetype ); // always send this 
    85 @header( 'Content-Length: ' . filesize( $file ) ); 
     85if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) ) 
     86    @header( 'Content-Length: ' . filesize( $file ) ); 
    8687 
    8788$last_modified = gmdate('D, d M Y H:i:s', filemtime( $file )); 
Note: See TracChangeset for help on using the changeset viewer.