forked from indymedia/epicyon
Variations on the theme
parent
a093472bee
commit
cd90434ce3
12
httpsig.py
12
httpsig.py
|
@ -193,11 +193,13 @@ def verifyPostHeaders(httpPrefix: str,publicKeyPem: str,headers: dict, \
|
|||
if headers.get(signedHeader):
|
||||
signedHeaderList.append(f'content-length: {headers[signedHeader]}')
|
||||
else:
|
||||
if debug:
|
||||
print('DEBUG: verifyPostHeaders '+signedHeader+' not found in '+str(headers))
|
||||
elif signedHeader == 'Content-Length':
|
||||
if headers.get(signedHeader):
|
||||
signedHeaderList.append(f'Content-Length: {headers[signedHeader]}')
|
||||
if headers.get('Content-Length'):
|
||||
contentLength=headers['Content-Length']
|
||||
signedHeaderList.append(f'content-length: {contentLength}')
|
||||
else:
|
||||
if headers.get('Content-length'):
|
||||
contentLength=headers['Content-length']
|
||||
signedHeaderList.append(f'content-length: {contentLength}')
|
||||
else:
|
||||
if debug:
|
||||
print('DEBUG: verifyPostHeaders '+signedHeader+' not found in '+str(headers))
|
||||
|
|
Loading…
Reference in New Issue