diff --git a/system/request.php b/system/request.php index 9b954bc6..064eef3b 100644 --- a/system/request.php +++ b/system/request.php @@ -109,16 +109,6 @@ class Request { } } - /** - * Determine if the request is using HTTPS. - * - * @return bool - */ - public static function is_secure() - { - return (static::protocol() == 'https'); - } - /** * Get the HTTP protocol for the request. * @@ -129,6 +119,16 @@ class Request { return (isset($_SERVER['HTTPS']) and $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; } + /** + * Determine if the request is using HTTPS. + * + * @return bool + */ + public static function is_secure() + { + return (static::protocol() == 'https'); + } + /** * Determine if the request is an AJAX request. *