Patch for an Issue #419 (Authentication header is now properly being cached - no more one reauth per each request)

This commit is contained in:
Miroslav Stampar 2013-03-09 19:33:04 +01:00
parent 8e6692d793
commit 1e731f87a4

View File

@ -3458,6 +3458,8 @@ def getRequestHeader(request, name):
retVal = None retVal = None
if request and name: if request and name:
retVal = max(request.get_header(_) if name.upper() == _.upper() else None for _ in request.headers.keys()) 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 return retVal
def isNumber(value): def isNumber(value):