mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Fix for an Issue #152
This commit is contained in:
parent
59078bb1b8
commit
76338add17
|
@ -953,6 +953,9 @@ def checkNullConnection():
|
|||
Reference: http://www.wisec.it/sectou.php?id=472f952d79293
|
||||
"""
|
||||
|
||||
if conf.data:
|
||||
return False
|
||||
|
||||
infoMsg = "testing NULL connection to the target url"
|
||||
logger.info(infoMsg)
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ class Connect:
|
|||
|
||||
return page
|
||||
|
||||
elif any ((refreshing, crawling)):
|
||||
elif any((refreshing, crawling)):
|
||||
pass
|
||||
|
||||
elif target:
|
||||
|
|
2
thirdparty/keepalive/keepalive.py
vendored
2
thirdparty/keepalive/keepalive.py
vendored
|
@ -129,7 +129,7 @@ class HTTPHandler(urllib2.HTTPHandler):
|
|||
if not req.headers.has_key('Content-length'):
|
||||
req.headers['Content-length'] = '%d' % len(data)
|
||||
else:
|
||||
h.putrequest('GET', req.get_selector())
|
||||
h.putrequest(req.get_method() or 'GET', req.get_selector())
|
||||
|
||||
if not req.headers.has_key('Connection'):
|
||||
req.headers['Connection'] = 'keep-alive'
|
||||
|
|
Loading…
Reference in New Issue
Block a user