From 1e731f87a49e231b4d705228daec39c4d28b19c0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 9 Mar 2013 19:33:04 +0100 Subject: [PATCH] Patch for an Issue #419 (Authentication header is now properly being cached - no more one reauth per each request) --- lib/core/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/common.py b/lib/core/common.py index ebddb7311..ef6d340c7 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -3458,6 +3458,8 @@ def getRequestHeader(request, name): retVal = None if request and name: retVal = max(request.get_header(_) if name.upper() == _.upper() else None for _ in request.headers.keys()) + if not retVal and request.unredirected_hdrs: + retVal = max(request.unredirected_hdrs.get(_) if name.upper() == _.upper() else None for _ in request.unredirected_hdrs.keys()) return retVal def isNumber(value):