Minor update for an Issue #288

This commit is contained in:
Miroslav Stampar 2012-12-07 11:23:18 +01:00
parent ed1b5d0ada
commit c0fc12beb2

View File

@ -74,6 +74,8 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
content = None content = None
redurl = self._get_header_redirect(headers) redurl = self._get_header_redirect(headers)
kb.httpErrorCodes[code] = kb.httpErrorCodes.get(code, 0) + 1
if redurl: if redurl:
if not urlparse.urlsplit(redurl).netloc: if not urlparse.urlsplit(redurl).netloc:
redurl = urlparse.urljoin(req.get_full_url(), redurl) redurl = urlparse.urljoin(req.get_full_url(), redurl)