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

Skip to content

Commit 76338ad

Browse files
committed
Fix for an Issue #152
1 parent 59078bb commit 76338ad

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,9 @@ def checkNullConnection():
953953
Reference: http://www.wisec.it/sectou.php?id=472f952d79293
954954
"""
955955

956+
if conf.data:
957+
return False
958+
956959
infoMsg = "testing NULL connection to the target url"
957960
logger.info(infoMsg)
958961

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def getPage(**kwargs):
242242

243243
return page
244244

245-
elif any ((refreshing, crawling)):
245+
elif any((refreshing, crawling)):
246246
pass
247247

248248
elif target:

thirdparty/keepalive/keepalive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _start_connection(self, h, req):
129129
if not req.headers.has_key('Content-length'):
130130
req.headers['Content-length'] = '%d' % len(data)
131131
else:
132-
h.putrequest('GET', req.get_selector())
132+
h.putrequest(req.get_method() or 'GET', req.get_selector())
133133

134134
if not req.headers.has_key('Connection'):
135135
req.headers['Connection'] = 'keep-alive'

0 commit comments

Comments
 (0)