CAS_Client::_isHttps PHP Method

_isHttps() private method

This method checks to see if the request is secured via HTTPS
private _isHttps ( ) : boolean
return boolean true if https, false otherwise
    private function _isHttps()
    {
        if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
            return $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https';
        }
        if (isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && strcasecmp($_SERVER['HTTPS'], 'off') !== 0) {
            return true;
        } else {
            return false;
        }
    }
CAS_Client