s/Content-type/Content-Type/. Props dvwallin. fixes #17256
git-svn-id: https://develop.svn.wordpress.org/trunk@17922 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9781af86f5
commit
343de36521
@ -38,7 +38,7 @@ if( $mime[ 'type' ] )
|
||||
else
|
||||
$mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 );
|
||||
|
||||
header( 'Content-type: ' . $mimetype ); // always send this
|
||||
header( 'Content-Type: ' . $mimetype ); // always send this
|
||||
if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) )
|
||||
header( 'Content-Length: ' . filesize( $file ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user