Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e731f8

Browse files
committed
Patch for an Issue #419 (Authentication header is now properly being cached - no more one reauth per each request)
1 parent 8e6692d commit 1e731f8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3458,6 +3458,8 @@ def getRequestHeader(request, name):
34583458
retVal = None
34593459
if request and name:
34603460
retVal = max(request.get_header(_) if name.upper() == _.upper() else None for _ in request.headers.keys())
3461+
if not retVal and request.unredirected_hdrs:
3462+
retVal = max(request.unredirected_hdrs.get(_) if name.upper() == _.upper() else None for _ in request.unredirected_hdrs.keys())
34613463
return retVal
34623464

34633465
def isNumber(value):

0 commit comments

Comments
 (0)