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:
de2ca93
)
Bugfix: actually send the error message given to wfHttpError()
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 23 Apr 2005 08:41:59 +0000
(08:41 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 23 Apr 2005 08:41:59 +0000
(08:41 +0000)
The test for HEAD requests was done backwards, and is useless besides
(output is discarded automatically when responding to HEAD reqs).
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
f50ce44
..
cb51682
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-830,11
+830,8
@@
function wfHttpError( $code, $label, $desc ) {
header( "Status: $code $label" );
$wgOut->sendCacheControl();
- # Don't send content if it's a HEAD request.
- if( $_SERVER['REQUEST_METHOD'] == 'HEAD' ) {
- header( 'Content-type: text/plain' );
- print $desc."\n";
- }
+ header( 'Content-type: text/plain' );
+ print $desc."\n";
}
/**