fixed bug where Mojo::UserAgent would try to follow redirects for protocols other than HTTP and HTTPS