]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rurllib2.py
Feat(robots): Handle HTTP redirect 308
[bookmarks_db.git] / Robots / bkmk_rurllib2.py
index 66f04600135d648b281e52952a3e53c84d44bc22..1233c70aee1912d9047864f385e1140fd157ac5c 100644 (file)
@@ -66,7 +66,7 @@ class robot_urllib2(robot_base):
             response = urllib2.urlopen(request)
 
         except urllib2.HTTPError as e:
-            if e.code in (301, 302, 303, 307):
+            if e.code in (301, 302, 303, 307, 308):
                 return None, e.code, e.hdrs['Location'], None, None
             else:
                 self.log('   HTTP Error %s: %s' % (e.code, e.msg))