yiisoft/yii — pull request #772 by bulletbee (2012-05-31 11:44:31+00:00)
Title: CHttpRequest->getIsSecureConnection() fails on some conditions.

$_SERVER['HTTPS'] is not always 'on' if a secured connection is active. It can e.g. be '1'.

PHP documentation (http://php.net/manual/en/reserved.variables.server.php): "'HTTPS' Set to a non-empty value if the script was queried through the HTTPS protocol. Note: Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol."