mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
Minor bug fix
This commit is contained in:
parent
6b70dadfb2
commit
36bc410333
1 changed files with 4 additions and 4 deletions
|
|
@ -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 a new issue