summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/response.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/response.php b/core/response.php
index 0973bf95..a5f0e4dc 100644
--- a/core/response.php
+++ b/core/response.php
@@ -14,12 +14,8 @@ class Response
*/
public function status($status_code)
{
- if (strpos(php_sapi_name(), 'apache') !== false) {
- header('HTTP/1.0 '.$status_code);
- }
- else {
- header('Status: '.$status_code);
- }
+ header('Status: '.$status_code);
+ header($_SERVER['SERVER_PROTOCOL'].' '.$status_code);
}
public function redirect($url)