dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ccfa133
)
Merge "Add Content-Length header to thumb.php error responses"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 8 Jul 2015 06:29:51 +0000
(06:29 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 8 Jul 2015 06:29:51 +0000
(06:29 +0000)
thumb.php
patch
|
blob
|
history
diff --git
a/thumb.php
b/thumb.php
index
c4e690e
..
b530bb5
100644
(file)
--- a/
thumb.php
+++ b/
thumb.php
@@
-570,7
+570,7
@@
function wfThumbError( $status, $msg ) {
} else {
$debug = '';
}
-
echo
<<<EOT
+
$content =
<<<EOT
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8" />
@@
-586,4
+586,6
@@
$debug
</html>
EOT;
+ header( 'Content-Length: ' . strlen( $content ) );
+ echo $content;
}