From a0eaad3833657a610532a166da122b51422088dd Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 18 Sep 2011 21:46:58 +0200 Subject: [PATCH] BUGFIX Enforce status code set through SS_HTTPResponse->setStatusCode() in output(), override PHP auto-detection of code based on HTTP headers (thanks miiihi) --- control/HTTPResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/HTTPResponse.php b/control/HTTPResponse.php index d52b8bc18..b7bf3aebb 100755 --- a/control/HTTPResponse.php +++ b/control/HTTPResponse.php @@ -225,7 +225,7 @@ class SS_HTTPResponse { if(!headers_sent()) { header($_SERVER['SERVER_PROTOCOL'] . " $this->statusCode " . $this->getStatusDescription()); foreach($this->headers as $header => $value) { - header("$header: $value"); + header("$header: $value", true, $this->statusCode); } }