BUGFIX: Fixed HTTP/1.0 support

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@64722 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2008-10-23 23:23:39 +00:00 committed by Sam Minnee
parent 8bd4ee733a
commit 0431518314

View File

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