From 7448da5ddc2cdbddafa01c49ff22e35734c4c877 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 29 Jan 2013 17:02:19 +0100 Subject: [PATCH] Make HttpError set actual HTTP error code. Previsouly, HttpError would set a Status header with the desired code, but would not change the actual HTTP/1.1 header to include that code. Change-Id: I2f68b1fa410b3619c5be3e82b64f99df97b9415a --- includes/Exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Exception.php b/includes/Exception.php index 27ae3380a6..700011934a 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -570,7 +570,7 @@ class HttpError extends MWException { public function report() { $httpMessage = HttpStatus::getMessage( $this->httpCode ); - header( "Status: {$this->httpCode} {$httpMessage}" ); + header( "Status: {$this->httpCode} {$httpMessage}", true, $this->httpCode ); header( 'Content-type: text/html; charset=utf-8' ); if ( $this->header === null ) { -- 2.20.1