summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorDaniel Morris <daniel@honestempire.com>2012-10-04 22:06:21 +0200
committerDaniel Morris <daniel@honestempire.com>2012-10-04 22:06:21 +0200
commit6602cd7b7433b1d514b0f944cc9de563133174cf (patch)
tree65054cfe9b8d67c5863cdc1f5fa6741dfddc06a7 /system/core/Common.php
parent824b4f220ca3dadc8f0945c665a7d7f8105a5dc4 (diff)
DRY determining server protocol
Signed-off-by: Daniel Morris <daniel@honestempire.com>
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 57374b07d..09b73ef2e 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.' '.$code.' '.$text, TRUE, $code);
}
}
}