Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b70dad commit 36bc410Copy full SHA for 36bc410
1 file changed
lib/request/connect.py
@@ -169,11 +169,11 @@ def getPage(**kwargs):
169
170
conn = urllib2.urlopen(req)
171
172
- if req.has_header("Authorization"):
173
- kb.authHeader = req.headers["Authorization"]
+ if not kb.authHeader and req.has_header("Authorization"):
+ kb.authHeader = req.get_header("Authorization")
174
175
- if req.has_header("Proxy-authorization"):
176
- kb.proxyAuthHeader = req.headers["Proxy-authorization"]
+ if not kb.proxyAuthHeader and req.has_header("Proxy-authorization"):
+ kb.proxyAuthHeader = req.get_header("Proxy-authorization")
177
178
if hasattr(conn, "redurl") and hasattr(conn, "redcode") and not conf.redirectHandled:
179
msg = "sqlmap got a %d redirect to " % conn.redcode
0 commit comments