WordPress.org

Make WordPress Core

Ticket #18043: 18043.patch

File 18043.patch, 559 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/ms-files.php

     
    3939        $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 ); 
    4040 
    4141header( 'Content-Type: ' . $mimetype ); // always send this 
    42 if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) ) 
    43         header( 'Content-Length: ' . filesize( $file ) ); 
    4442 
    4543// Optional support for X-Sendfile and X-Accel-Redirect 
    4644if ( WPMU_ACCEL_REDIRECT ) {