mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Minor layout adjustments
This commit is contained in:
@@ -12,7 +12,6 @@ import urllib2
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import logger
|
||||
from lib.core.common import getUnicode
|
||||
from lib.core.common import logHTTPTraffic
|
||||
from lib.core.exception import sqlmapConnectionException
|
||||
from lib.core.threads import getCurrentThreadData
|
||||
|
||||
@@ -29,7 +28,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||
threadData = getCurrentThreadData()
|
||||
threadData.lastRedirectMsg = (threadData.lastRequestUID, content)
|
||||
|
||||
responseMsg = "HTTP response "
|
||||
responseMsg = "HTTP response "
|
||||
responseMsg += "[#%d] (%d %s):\n" % (threadData.lastRequestUID, code, getUnicode(msg))
|
||||
|
||||
if headers:
|
||||
@@ -40,7 +39,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||
if conf.verbose <= 5:
|
||||
responseMsg += getUnicode(logHeaders)
|
||||
elif conf.verbose > 5:
|
||||
responseMsg += "%s\n%s\n" % (logHeaders, content)
|
||||
responseMsg += "%s\n\n%s\n" % (logHeaders, content)
|
||||
|
||||
logger.log(7, responseMsg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user