Update CHttpRequest.php

when $_SERVER['HTTPS'] is "ON" it not works well