From 0b7dbab0aff1271ac1097f8751fd8521309ce6e6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 25 Jun 2011 20:20:09 -0500 Subject: [PATCH] adjusted method order in request class. --- system/request.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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. *