Add support for HTTP vs HTTPS detection