mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
one more update regarding Bug #205
This commit is contained in:
parent
1f5224f1ac
commit
895efd28a6
|
@ -150,8 +150,17 @@ class Connect:
|
||||||
|
|
||||||
conn = urllib2.urlopen(req)
|
conn = urllib2.urlopen(req)
|
||||||
|
|
||||||
|
if not req.has_header("Accept-Encoding"):
|
||||||
|
requestHeaders += "Accept-Encoding: identity\n"
|
||||||
|
|
||||||
requestHeaders += "\n".join(["%s: %s" % (header, value) for header, value in req.header_items()])
|
requestHeaders += "\n".join(["%s: %s" % (header, value) for header, value in req.header_items()])
|
||||||
|
|
||||||
|
if not req.has_header("Cookie") and cookieStr:
|
||||||
|
requestHeaders += "\n%s" % cookieStr[:-2]
|
||||||
|
|
||||||
|
if not req.has_header("Connection"):
|
||||||
|
requestHeaders += "\nConnection: close"
|
||||||
|
|
||||||
requestMsg += "\n%s" % requestHeaders
|
requestMsg += "\n%s" % requestHeaders
|
||||||
|
|
||||||
if post:
|
if post:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user