From c59896a7093867386c6ea5be62681a2a009d2e6e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 23 Apr 2005 08:41:59 +0000 Subject: [PATCH] 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). --- includes/GlobalFunctions.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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"; } /** -- 2.20.1