Fix for crawler and redirection case

This commit is contained in:
stamparm
2013-04-30 18:08:26 +02:00
parent 09e7f4f697
commit ebe8ee3500
3 changed files with 5 additions and 1 deletions

View File

@@ -117,9 +117,10 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
else:
result = fp
threadData.lastRedirectURL = (threadData.lastRequestUID, redurl)
result.redcode = code
result.redurl = redurl
return result
http_error_301 = http_error_303 = http_error_307 = http_error_302