DRY determining server protocol
Signed-off-by: Daniel Morris <daniel@honestempire.com>
diff --git a/system/core/Common.php b/system/core/Common.php
index 57374b0..09b73ef 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -488,13 +488,9 @@
{
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);
}
}
}