commit | e5f9e4a6069db57ec6c166bc8f198b1c229cf399 | [log] [tgz] |
---|---|---|
author | Daniel Morris <daniel@honestempire.com> | Thu Oct 04 21:33:46 2012 +0100 |
committer | Daniel Morris <daniel@honestempire.com> | Thu Oct 04 21:33:46 2012 +0100 |
tree | a0001db604848d2bc37f870f6eba0224df29fe30 | |
parent | 6602cd7b7433b1d514b0f944cc9de563133174cf [diff] |
Default to HTTP/1.1 if $server_protocol is not set Signed-off-by: Daniel Morris <daniel@honestempire.com>
diff --git a/system/core/Common.php b/system/core/Common.php index 09b73ef..2a80487 100644 --- a/system/core/Common.php +++ b/system/core/Common.php
@@ -490,7 +490,7 @@ } else { - header($server_protocol.' '.$code.' '.$text, TRUE, $code); + header($server_protocol ?: 'HTTP/1.1'.' '.$code.' '.$text, TRUE, $code); } } }