mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
minor fix
This commit is contained in:
parent
ca0d068575
commit
52a8b25ff4
|
@ -173,6 +173,7 @@ class Connect:
|
|||
requestHeaders = u""
|
||||
responseHeaders = None
|
||||
logHeaders = u""
|
||||
skipLogTraffic = False
|
||||
|
||||
raise404 = raise404 and not kb.ignoreNotFound
|
||||
|
||||
|
@ -317,6 +318,7 @@ class Connect:
|
|||
if kb.redirectChoice == REDIRECTION.IGNORE:
|
||||
redirecting = conn.redcode
|
||||
page = threadData.lastRedirectMsg[1]
|
||||
skipLogTraffic = True
|
||||
else:
|
||||
kb.queryCounter += 1
|
||||
kwargs['url'] = conf.url if kb.redirectChoice == REDIRECTION.ORIGINAL else conn.redurl
|
||||
|
@ -503,7 +505,8 @@ class Connect:
|
|||
if responseHeaders:
|
||||
logHeaders = "\n".join("%s: %s" % (key.capitalize() if isinstance(key, basestring) else key, getUnicode(value)) for (key, value) in responseHeaders.items())
|
||||
|
||||
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page))
|
||||
if not skipLogTraffic:
|
||||
logHTTPTraffic(requestMsg, "%s%s\n\n%s" % (responseMsg, logHeaders, page))
|
||||
|
||||
if conf.verbose <= 5:
|
||||
responseMsg += getUnicode(logHeaders)
|
||||
|
|
Loading…
Reference in New Issue
Block a user