BUGFIX Enforce status code set through SS_HTTPResponse->setStatusCode() in output(), override PHP auto-detection of code based on HTTP headers (thanks miiihi)

This commit is contained in:
Ingo Schommer 2011-09-18 21:46:58 +02:00
parent c35c48b768
commit a0eaad3833

View File

@ -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);
}
}