diff options
author | Daniel Morris <daniel@honestempire.com> | 2012-10-04 22:33:46 +0200 |
---|---|---|
committer | Daniel Morris <daniel@honestempire.com> | 2012-10-04 22:33:46 +0200 |
commit | e5f9e4a6069db57ec6c166bc8f198b1c229cf399 (patch) | |
tree | a0001db604848d2bc37f870f6eba0224df29fe30 /system/core | |
parent | 6602cd7b7433b1d514b0f944cc9de563133174cf (diff) |
Default to HTTP/1.1 if $server_protocol is not set
Signed-off-by: Daniel Morris <daniel@honestempire.com>
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 09b73ef2e..2a804877d 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -490,7 +490,7 @@ if ( ! function_exists('set_status_header')) } else { - header($server_protocol.' '.$code.' '.$text, TRUE, $code); + header($server_protocol ?: 'HTTP/1.1'.' '.$code.' '.$text, TRUE, $code); } } } |