resolve redirection for HTTP resources (#5151)
resolve redirection for HTTP resources (#5151)

* resolve redirection for HTTP resources

* appease mypy

* address review
pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision,pytorch/vision