From: daniel Date: Tue, 29 Jan 2013 16:02:19 +0000 (+0100) Subject: Make HttpError set actual HTTP error code. X-Git-Tag: 1.31.0-rc.0~20865 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=7448da5ddc2cdbddafa01c49ff22e35734c4c877;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {