mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Fix for an Issue #152
This commit is contained in:
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'
|
||||
|
||||
Reference in New Issue
Block a user