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

Skip to content

Commit 956047b

Browse files
committed
Patch for an Issue #1468
1 parent 475ca52 commit 956047b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/request/redirecthandler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from lib.core.settings import MAX_TOTAL_REDIRECTIONS
3131
from lib.core.threads import getCurrentThreadData
3232
from lib.request.basic import decodePage
33+
from lib.request.basic import parseResponse
3334

3435
class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
3536
def _get_header_redirect(self, headers):
@@ -118,6 +119,8 @@ def http_error_302(self, req, fp, code, msg, headers):
118119
result = fp
119120

120121
if redurl and kb.redirectChoice == REDIRECTION.YES:
122+
parseResponse(content, headers)
123+
121124
req.headers[HTTP_HEADER.HOST] = getHostHeader(redurl)
122125
if headers and HTTP_HEADER.SET_COOKIE in headers:
123126
req.headers[HTTP_HEADER.COOKIE] = headers[HTTP_HEADER.SET_COOKIE].split(conf.cookieDel or DEFAULT_COOKIE_DELIMITER)[0]

0 commit comments

Comments
 (0)