From c5eb13c114821b02c7a29546261c7611d91d126d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Thu, 16 Jan 2020 14:33:54 +0000 Subject: [PATCH] update redirect check --- dvc/remote/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/remote/http.py b/dvc/remote/http.py index e76185d5d..ca68cac5b 100644 --- a/dvc/remote/http.py +++ b/dvc/remote/http.py @@ -103,7 +103,7 @@ class RemoteHTTP(RemoteBASE): try: res = self._session.request(method, url, **kwargs) - if kwargs["allow_redirects"] and res.is_redirect: + if kwargs["allow_redirects"] and res.status_code in (301, 302): # AWS s3 doesn't like to add a location header to its redirects # from https://s3.amazonaws.com//* type URLs. # This should be treated as an error