mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
update
This commit is contained in:
parent
788eb8fb50
commit
1f5224f1ac
|
@ -122,14 +122,14 @@ class HTTPHandler(urllib2.HTTPHandler):
|
||||||
data = req.get_data()
|
data = req.get_data()
|
||||||
h.putrequest('POST', req.get_selector())
|
h.putrequest('POST', req.get_selector())
|
||||||
if not req.headers.has_key('Content-type'):
|
if not req.headers.has_key('Content-type'):
|
||||||
h.putheader('Content-type', 'application/x-www-form-urlencoded')
|
req.headers['Content-type'] = 'application/x-www-form-urlencoded'
|
||||||
if not req.headers.has_key('Content-length'):
|
if not req.headers.has_key('Content-length'):
|
||||||
h.putheader('Content-length', '%d' % len(data))
|
req.headers['Content-length'] = '%d' % len(data)
|
||||||
else:
|
else:
|
||||||
h.putrequest('GET', req.get_selector())
|
h.putrequest('GET', req.get_selector())
|
||||||
|
|
||||||
if not req.headers.has_key('Connection'):
|
if not req.headers.has_key('Connection'):
|
||||||
h.putheader('Connection', 'keep-alive')
|
req.headers['Connection'] = 'keep-alive'
|
||||||
|
|
||||||
for args in self.parent.addheaders:
|
for args in self.parent.addheaders:
|
||||||
h.putheader(*args)
|
h.putheader(*args)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user