Autodetection of HTTPS improved.