BUGFIX #2529: Fixed HTTP/1.0 support

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63304 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-09-29 20:23:47 +00:00
parent 2c11afb2df
commit 85e52eb568

View File

@ -177,7 +177,7 @@ class HTTPResponse extends Object {
<script type=\"text/javascript\">setTimeout('window.location.href = \"$url\"', 50);</script>";
} else {
if(!headers_sent()) {
header("HTTP/1.1 $this->statusCode " . $this->getStatusDescription());
header($_SERVER['SERVER_PROTOCOL'] . " $this->statusCode " . $this->getStatusDescription());
foreach($this->headers as $header => $value) {
header("$header: $value");
}