From c9c037a0d22cf442014c06598199c49a324096e3 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 1 Sep 2020 13:58:18 +0200 Subject: [PATCH] fix #4322 --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 3c419e5b3..be59ec207 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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