r109961 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109960‎ | r109961 | r109962 >
Date:22:22, 24 January 2012
Author:tstarling
Status:ok (Comments)
Tags:
Comment:
Improve documentation for content type choice
Modified paths:
  • /trunk/phase3/includes/StreamFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/StreamFile.php
@@ -78,6 +78,10 @@
7979 if ( $type && $type != 'unknown/unknown' ) {
8080 header( "Content-type: $type" );
8181 } else {
 82+ // Send a content type which is not known to Internet Explorer, to
 83+ // avoid triggering IE's content type detection. Sending a standard
 84+ // unknown content type here essentially gives IE license to apply
 85+ // whatever content type it likes.
8286 header( 'Content-type: application/x-wiki' );
8387 }
8488

Comments

#Comment by Aaron Schulz (talk | contribs)   23:42, 24 January 2012

Nice. When stuff like this isn't documented, it can easily be deleted or lost over time.

Status & tagging log