Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0fc12b

Browse files
committed
Minor update for an Issue #288
1 parent ed1b5d0 commit c0fc12b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/request/redirecthandler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def http_error_302(self, req, fp, code, msg, headers):
7474
content = None
7575
redurl = self._get_header_redirect(headers)
7676

77+
kb.httpErrorCodes[code] = kb.httpErrorCodes.get(code, 0) + 1
78+
7779
if redurl:
7880
if not urlparse.urlsplit(redurl).netloc:
7981
redurl = urlparse.urljoin(req.get_full_url(), redurl)

0 commit comments

Comments
 (0)