diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-05 09:42:06 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-05 09:42:06 +0200 |
commit | f20bca9e065751fc271cb650f9246073492eccea (patch) | |
tree | fdaf8ce4f07b712fa4388b0d84b457b28c46cf29 /system | |
parent | 5b92ae1dfb6ac99630693d193b0d3f60f9df525f (diff) | |
parent | 0fc4a10fab7041585def63ff562f5247790915f3 (diff) |
Merge pull request #1851 from daniel-honestempire/develop
DRY determining server protocol
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Common.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 57374b07d..e449dd2e0 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -488,13 +488,9 @@ if ( ! function_exists('set_status_header')) { header('Status: '.$code.' '.$text, TRUE); } - elseif ($server_protocol === 'HTTP/1.0') - { - header('HTTP/1.0 '.$code.' '.$text, TRUE, $code); - } else { - header('HTTP/1.1 '.$code.' '.$text, TRUE, $code); + header(($server_protocol ? $server_protocol : 'HTTP/1.1').' '.$code.' '.$text, TRUE, $code); } } } |