From: Brion Vibber Date: Sat, 23 Apr 2005 08:41:59 +0000 (+0000) Subject: Bugfix: actually send the error message given to wfHttpError() X-Git-Tag: 1.5.0alpha1~177 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=c59896a7093867386c6ea5be62681a2a009d2e6e;p=lhc%2Fweb%2Fwiklou.git Bugfix: actually send the error message given to wfHttpError() The test for HEAD requests was done backwards, and is useless besides (output is discarded automatically when responding to HEAD reqs). --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index f50ce44ed5..cb51682315 100644 --- 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"; } /**