mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
added that "default" "Connection: keep-alive" header
This commit is contained in:
parent
cd0fe8dde0
commit
73ececd903
|
@ -128,6 +128,9 @@ class HTTPHandler(urllib2.HTTPHandler):
|
||||||
else:
|
else:
|
||||||
h.putrequest('GET', req.get_selector())
|
h.putrequest('GET', req.get_selector())
|
||||||
|
|
||||||
|
if not req.headers.has_key('Connection'):
|
||||||
|
h.putheader('Connection', 'keep-alive')
|
||||||
|
|
||||||
for args in self.parent.addheaders:
|
for args in self.parent.addheaders:
|
||||||
h.putheader(*args)
|
h.putheader(*args)
|
||||||
for k, v in req.headers.items():
|
for k, v in req.headers.items():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user