Merge branch 'Fix-basic-authentication-issue'

This commit is contained in:
manuel 2020-09-01 15:43:37 +02:00
commit 13c9be2add

View File

@ -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