mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Patch for an Issue #419 (Authentication header is now properly being cached - no more one reauth per each request)
This commit is contained in:
parent
8e6692d793
commit
1e731f87a4
|
@ -3458,6 +3458,8 @@ def getRequestHeader(request, name):
|
||||||
retVal = None
|
retVal = None
|
||||||
if request and name:
|
if request and name:
|
||||||
retVal = max(request.get_header(_) if name.upper() == _.upper() else None for _ in request.headers.keys())
|
retVal = max(request.get_header(_) if name.upper() == _.upper() else None for _ in request.headers.keys())
|
||||||
|
if not retVal and request.unredirected_hdrs:
|
||||||
|
retVal = max(request.unredirected_hdrs.get(_) if name.upper() == _.upper() else None for _ in request.unredirected_hdrs.keys())
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def isNumber(value):
|
def isNumber(value):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user