]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rurllib_py3.py
Feat(robots): Handle HTTP redirect 308
[bookmarks_db.git] / Robots / bkmk_rurllib_py3.py
index 9493a589556a2aaeba7a88925a8b6a27344cfb3b..1daec389aebaa27f3eb502cc2ef2016310dbea4c 100644 (file)
@@ -43,6 +43,8 @@ class MyURLopener(urllib.request.URLopener):
     http_error_303 = http_error_301
     # Error 307 -- relocated (temporarily)
     http_error_307 = http_error_301
+    # Error 308 -- relocated (permanently)
+    http_error_308 = http_error_301
 
     # Error 401 -- authentication required
     def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):