Ticket #18043: 18043.patch
File 18043.patch, 559 bytes (added by , 13 years ago) |
---|
-
wp-includes/ms-files.php
39 39 $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 ); 40 40 41 41 header( 'Content-Type: ' . $mimetype ); // always send this 42 if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) )43 header( 'Content-Length: ' . filesize( $file ) );44 42 45 43 // Optional support for X-Sendfile and X-Accel-Redirect 46 44 if ( WPMU_ACCEL_REDIRECT ) {