resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase

I had a case where the Location header had a URL with the scheme in uppercase, which caused an InvalidSchema exception.