mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
8bd4ee733a
commit
0431518314
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user