diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Core/Http/Response.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Core/Http/Response.php b/app/Core/Http/Response.php index fc214010..fdd7d994 100644 --- a/app/Core/Http/Response.php +++ b/app/Core/Http/Response.php @@ -60,7 +60,7 @@ class Response extends Base public function status($status_code) { header('Status: '.$status_code); - header($_SERVER['SERVER_PROTOCOL'].' '.$status_code); + header($this->request->getServerVariable('SERVER_PROTOCOL').' '.$status_code); } /** @@ -71,7 +71,7 @@ class Response extends Base */ public function redirect($url) { - if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest') { + if ($this->request->getServerVariable('HTTP_X_REQUESTED_WITH') === 'XMLHttpRequest') { header('X-Ajax-Redirect: '.$url); } else { header('Location: '.$url); |