forked from indymedia/epicyon
Extra http header fields
parent
7815126f65
commit
81d77f9843
|
@ -112,6 +112,12 @@ def verifyPostHeaders(httpPrefix: str, publicKeyPem: str, headers: dict, \
|
||||||
if signedHeader == '(request-target)':
|
if signedHeader == '(request-target)':
|
||||||
signedHeaderList.append(
|
signedHeaderList.append(
|
||||||
f'(request-target): {method.lower()} {path}')
|
f'(request-target): {method.lower()} {path}')
|
||||||
|
elif signedHeader.lower() == 'content-type':
|
||||||
|
continue
|
||||||
|
elif signedHeader == 'date':
|
||||||
|
dateJson=messageBodyJsonStr.encode()
|
||||||
|
print('*********************date: '+str(dateJson))
|
||||||
|
#signedHeaderList.append(f'date: SHA-256={dateStr}')
|
||||||
elif signedHeader == 'digest':
|
elif signedHeader == 'digest':
|
||||||
bodyDigest = \
|
bodyDigest = \
|
||||||
base64.b64encode(SHA256.new(messageBodyJsonStr.encode()).digest())
|
base64.b64encode(SHA256.new(messageBodyJsonStr.encode()).digest())
|
||||||
|
|
Loading…
Reference in New Issue