This commit is contained in:
manuel 2020-09-01 13:58:18 +02:00
parent 226d467f6d
commit c9c037a0d2

View File

@ -5056,7 +5056,7 @@ def getRequestHeader(request, name):
if request and request.headers and name:
_ = 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