From e9e6c20f4cacbb1f266a228d51fc402aab1db527 Mon Sep 17 00:00:00 2001 From: Jindrich Makovicka Date: Wed, 3 Jun 2020 21:41:28 +0200 Subject: [PATCH] Remove 308 from redirect codes for httplib2 0.16.0 compatibility --- pydrive/auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pydrive/auth.py b/pydrive/auth.py index e0b7e58..cb1f901 100644 --- a/pydrive/auth.py +++ b/pydrive/auth.py @@ -529,5 +529,6 @@ def Get_Http_Object(self): :rtype: httplib2.Http """ http = httplib2.Http(timeout=self.http_timeout) + http.redirect_codes = http.redirect_codes - {308} http = self.credentials.authorize(http) return http