Another capitalization variant

merge-requests/21/head
Bob Mottram 2021-03-14 18:29:10 +00:00
parent 5981ee16d8
commit c753388077
1 changed files with 5 additions and 0 deletions

View File

@ -387,6 +387,11 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
if headers.get(signedHeaderCap): if headers.get(signedHeaderCap):
signedHeaderList.append( signedHeaderList.append(
f'{signedHeader}: {headers[signedHeaderCap]}') f'{signedHeader}: {headers[signedHeaderCap]}')
else:
signedHeaderCap = signedHeader.capitalize()
if headers.get(signedHeaderCap):
signedHeaderList.append(
f'{signedHeader}: {headers[signedHeaderCap]}')
if debug: if debug:
print('DEBUG: signedHeaderList: ' + str(signedHeaderList)) print('DEBUG: signedHeaderList: ' + str(signedHeaderList))