Updated RequireHttps library that contains more condition to check HTTPS connection.