mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Generic patch for #2886 (cause still unknown)
This commit is contained in:
parent
1822cc05f6
commit
3fde205cd4
3 changed files with 6 additions and 4 deletions
|
|
@ -430,8 +430,10 @@ class Connect(object):
|
|||
method = unicodeencode(method)
|
||||
req = MethodRequest(url, post, headers)
|
||||
req.set_method(method)
|
||||
else:
|
||||
elif url is not None:
|
||||
req = urllib2.Request(url, post, headers)
|
||||
else:
|
||||
return None, None, None
|
||||
|
||||
requestHeaders += "\r\n".join(["%s: %s" % (getUnicode(key.capitalize() if isinstance(key, basestring) else key), getUnicode(value)) for (key, value) in req.header_items()])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue