Fix to support HTTPS protocol.