From cb397162b8e72e24fa403cfa058ab1fcda2d3c73 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 24 Jan 2012 22:22:19 +0000 Subject: [PATCH] Improve documentation for content type choice --- includes/StreamFile.php | 4 ++++ 1 file changed, 4 insertions(+) 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' ); } -- 2.20.1