More efficient

merge-requests/21/head
Bob Mottram 2021-03-14 18:34:30 +00:00
parent c753388077
commit df0179768f
1 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,8 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict,
if headers.get(signedHeaderCap):
signedHeaderList.append(
f'{signedHeader}: {headers[signedHeaderCap]}')
else:
elif '-' in signedHeader:
# my-header becomes My-header
signedHeaderCap = signedHeader.capitalize()
if headers.get(signedHeaderCap):
signedHeaderList.append(