forked from indymedia/epicyon
Return to case
parent
55194f95d5
commit
08c7177db5
10
httpsig.py
10
httpsig.py
|
@ -189,15 +189,11 @@ def verifyPostHeaders(httpPrefix: str,publicKeyPem: str,headers: dict, \
|
||||||
#print('***************************Verify digest: SHA-256='+bodyDigest)
|
#print('***************************Verify digest: SHA-256='+bodyDigest)
|
||||||
#print('***************************Verify messageBodyJsonStr: '+messageBodyJsonStr)
|
#print('***************************Verify messageBodyJsonStr: '+messageBodyJsonStr)
|
||||||
elif signedHeader == 'content-length':
|
elif signedHeader == 'content-length':
|
||||||
contentLengthStr=signedHeader
|
if headers.get(signedHeader):
|
||||||
if not headers.get(contentLengthStr):
|
signedHeaderList.append(f'content-length: {headers[signedHeader]}')
|
||||||
if headers.get('Content-Length'):
|
|
||||||
contentLengthStr='Content-Length'
|
|
||||||
if headers.get(contentLengthStr):
|
|
||||||
signedHeaderList.append(f'{contentLengthStr}: {headers[signedHeader]}')
|
|
||||||
else:
|
else:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: verifyPostHeaders '+contentLengthStr+' not found in '+str(headers))
|
print('DEBUG: verifyPostHeaders '+signedHeader+' not found in '+str(headers))
|
||||||
elif signedHeader == 'Content-Length':
|
elif signedHeader == 'Content-Length':
|
||||||
if headers.get(signedHeader):
|
if headers.get(signedHeader):
|
||||||
signedHeaderList.append(f'Content-Length: {headers[signedHeader]}')
|
signedHeaderList.append(f'Content-Length: {headers[signedHeader]}')
|
||||||
|
|
Loading…
Reference in New Issue