diff --git a/httpsig.py b/httpsig.py index c90074e83..842a452db 100644 --- a/httpsig.py +++ b/httpsig.py @@ -387,6 +387,11 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict, if headers.get(signedHeaderCap): signedHeaderList.append( f'{signedHeader}: {headers[signedHeaderCap]}') + else: + signedHeaderCap = signedHeader.capitalize() + if headers.get(signedHeaderCap): + signedHeaderList.append( + f'{signedHeader}: {headers[signedHeaderCap]}') if debug: print('DEBUG: signedHeaderList: ' + str(signedHeaderList))