Fixed logic of HTTPS downgrade detection for multiple redirections, and grant that redirection if followed for HTTP servers