Bugfix: actually send the error message given to wfHttpError()
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Apr 2005 08:41:59 +0000 (08:41 +0000)
committerBrion 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

index f50ce44..cb51682 100644 (file)
@@ -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";
 }
 
 /**