mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
More drei updates
This commit is contained in:
parent
26c8423806
commit
d465007dfe
14 changed files with 60 additions and 39 deletions
4
thirdparty/multipart/multipartpost.py
vendored
4
thirdparty/multipart/multipartpost.py
vendored
|
|
@ -43,7 +43,7 @@ class MultipartPostHandler(_urllib.request.BaseHandler):
|
|||
handler_order = _urllib.request.HTTPHandler.handler_order - 10 # needs to run first
|
||||
|
||||
def http_request(self, request):
|
||||
data = request.get_data()
|
||||
data = request.data
|
||||
|
||||
if isinstance(data, dict):
|
||||
v_files = []
|
||||
|
|
@ -68,7 +68,7 @@ class MultipartPostHandler(_urllib.request.BaseHandler):
|
|||
# print "Replacing %s with %s" % (request.get_header("content-type"), "multipart/form-data")
|
||||
request.add_unredirected_header("Content-Type", contenttype)
|
||||
|
||||
request.add_data(data)
|
||||
request.data = data
|
||||
return request
|
||||
|
||||
def multipart_encode(vars, files, boundary=None, buf=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue