dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Improve documentation of $wgShowRollbackEditCount"
[lhc/web/wiklou.git]
/
includes
/
OutputHandler.php
diff --git
a/includes/OutputHandler.php
b/includes/OutputHandler.php
index
b0bbcdd
..
39716ca
100644
(file)
--- a/
includes/OutputHandler.php
+++ b/
includes/OutputHandler.php
@@
-129,16
+129,17
@@
function wfGzipHandler( $s ) {
$headers = headers_list();
$foundVary = false;
foreach ( $headers as $header ) {
$headers = headers_list();
$foundVary = false;
foreach ( $headers as $header ) {
- if ( substr( $header, 0, 5 ) == 'Vary:' ) {
+ $headerName = strtolower( substr( $header, 0, 5 ) );
+ if ( $headerName == 'vary:' ) {
$foundVary = true;
break;
}
}
if ( !$foundVary ) {
header( 'Vary: Accept-Encoding' );
$foundVary = true;
break;
}
}
if ( !$foundVary ) {
header( 'Vary: Accept-Encoding' );
- global $wgUse
XVO
;
- if ( $wgUse
XVO
) {
- header( '
X-Vary-Options: Accept-Encoding;list-contains
=gzip' );
+ global $wgUse
KeyHeader
;
+ if ( $wgUse
KeyHeader
) {
+ header( '
Key: Accept-Encoding;match
=gzip' );
}
}
return $s;
}
}
return $s;