mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
Minor bug fix
This commit is contained in:
parent
6b70dadfb2
commit
36bc410333
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user