mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor bug fix
This commit is contained in:
@@ -169,11 +169,11 @@ class Connect:
|
||||
|
||||
conn = urllib2.urlopen(req)
|
||||
|
||||
if req.has_header("Authorization"):
|
||||
kb.authHeader = req.headers["Authorization"]
|
||||
if not kb.authHeader and req.has_header("Authorization"):
|
||||
kb.authHeader = req.get_header("Authorization")
|
||||
|
||||
if req.has_header("Proxy-authorization"):
|
||||
kb.proxyAuthHeader = req.headers["Proxy-authorization"]
|
||||
if not kb.proxyAuthHeader and req.has_header("Proxy-authorization"):
|
||||
kb.proxyAuthHeader = req.get_header("Proxy-authorization")
|
||||
|
||||
if hasattr(conn, "redurl") and hasattr(conn, "redcode") and not conf.redirectHandled:
|
||||
msg = "sqlmap got a %d redirect to " % conn.redcode
|
||||
|
||||
Reference in New Issue
Block a user