mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
Minor refactoring
This commit is contained in:
parent
84a5bdb9cf
commit
d6fc10092f
|
@ -3457,9 +3457,7 @@ 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(value if name.upper() == key.upper() else None for key, value in request.header_items())
|
||||||
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