Patch for an Issue #2351

This commit is contained in:
Miroslav Stampar
2017-01-16 15:23:38 +01:00
parent 121f0376ea
commit 138aa6db65
3 changed files with 4 additions and 4 deletions

View File

@@ -492,7 +492,7 @@ class Connect(object):
kb.connErrorCounter = 0
if not refreshing:
refresh = headers.get(HTTP_HEADER.REFRESH)
refresh = responseHeaders.get(HTTP_HEADER.REFRESH, "").split("url=")[-1].strip()
if extractRegexResult(META_REFRESH_REGEX, page):
refresh = extractRegexResult(META_REFRESH_REGEX, page)