dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c36e9
)
Improve documentation for content type choice
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 24 Jan 2012 22:22:19 +0000
(22:22 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 24 Jan 2012 22:22:19 +0000
(22:22 +0000)
includes/StreamFile.php
patch
|
blob
|
history
diff --git
a/includes/StreamFile.php
b/includes/StreamFile.php
index
dc70712
..
55c5e48
100644
(file)
--- 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' );
}