mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor refactoring
This commit is contained in:
parent
84a5bdb9cf
commit
d6fc10092f
|
@ -3457,9 +3457,7 @@ def getRequestHeader(request, name):
|
|||
|
||||
retVal = None
|
||||
if request and name:
|
||||
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())
|
||||
retVal = max(value if name.upper() == key.upper() else None for key, value in request.header_items())
|
||||
return retVal
|
||||
|
||||
def isNumber(value):
|
||||
|
|
Loading…
Reference in New Issue
Block a user