Patch for --keep-alive (drei)

This commit is contained in:
Miroslav Stampar
2019-05-07 23:59:11 +02:00
parent bc88903699
commit 6faf9872bc
3 changed files with 14 additions and 10 deletions

View File

@@ -4692,7 +4692,7 @@ def getRequestHeader(request, name):
if request and request.headers and name:
_ = name.upper()
retVal = max(value if _ == key.upper() else "" for key, value in request.header_items()) or None
retVal = max(value if _ == key.upper() else type(value)() for key, value in request.header_items()) or None
return retVal