mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
minor fix for None results
This commit is contained in:
parent
4b784b03fd
commit
8fac4605a9
1 changed files with 12 additions and 12 deletions
|
|
@ -48,6 +48,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
|
||||
logger.log(7, responseMsg)
|
||||
|
||||
if result:
|
||||
if "location" in headers:
|
||||
result.redurl = headers.getheaders("location")[0].split("?")[0]
|
||||
elif "uri" in headers:
|
||||
|
|
@ -60,7 +61,6 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
if "set-cookie" in headers:
|
||||
result.setcookie = headers["set-cookie"].split("; path")[0]
|
||||
|
||||
if result:
|
||||
result.redcode = code
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Reference in a new issue