forked from indymedia/epicyon
Non-binary encoding for header list
parent
83698f5c2c
commit
e86a01a9c4
|
@ -121,7 +121,7 @@ def verifyPostHeaders(httpPrefix: str,publicKeyPem: str,headers: dict, \
|
|||
f'(request-target): {method.lower()} {path}')
|
||||
elif signedHeader == 'digest':
|
||||
bodyDigest = \
|
||||
base64.b64encode(SHA256.new(messageBodyJsonStr.encode()).digest())
|
||||
base64.b64encode(SHA256.new(messageBodyJsonStr.encode()).digest()).encode('utf-8')
|
||||
signedHeaderList.append(f'digest: SHA-256={bodyDigest}')
|
||||
else:
|
||||
if headers.get(signedHeader):
|
||||
|
|
Loading…
Reference in New Issue