From: Tim Starling Date: Tue, 24 Jan 2012 22:22:19 +0000 (+0000) Subject: Improve documentation for content type choice X-Git-Tag: 1.31.0-rc.0~25096 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=cb397162b8e72e24fa403cfa058ab1fcda2d3c73;p=lhc%2Fweb%2Fwiklou.git Improve documentation for content type choice --- diff --git a/includes/StreamFile.php b/includes/StreamFile.php index dc70712ad4..55c5e48fbc 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -78,6 +78,10 @@ class StreamFile { if ( $type && $type != 'unknown/unknown' ) { header( "Content-type: $type" ); } else { + // Send a content type which is not known to Internet Explorer, to + // avoid triggering IE's content type detection. Sending a standard + // unknown content type here essentially gives IE license to apply + // whatever content type it likes. header( 'Content-type: application/x-wiki' ); }