mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-27 08:30:10 +03:00
Merge branch 'Fix-basic-authentication-issue'
This commit is contained in:
commit
13c9be2add
|
@ -5056,7 +5056,7 @@ def getRequestHeader(request, name):
|
||||||
|
|
||||||
if request and request.headers and name:
|
if request and request.headers and name:
|
||||||
_ = name.upper()
|
_ = name.upper()
|
||||||
retVal = max(getBytes(value if _ == key.upper() else "") for key, value in request.header_items()) or None
|
retVal = max(getBytes(value if _ == key.upper() else "") for key, value in request.header_items()).decode("utf-8") or None
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user