mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
update
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user