content length as string

main
Bob Mottram 2019-11-12 13:15:45 +00:00
parent 6deab18126
commit 9120444d09
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ def createSignedHeader(privateKeyPem: str,nickname: str, \
#print('***************************Send digest: '+bodyDigest) #print('***************************Send digest: '+bodyDigest)
#print('***************************Send Content-type: '+contentType) #print('***************************Send Content-type: '+contentType)
#print('***************************Send messageBodyJsonStr: '+messageBodyJsonStr) #print('***************************Send messageBodyJsonStr: '+messageBodyJsonStr)
headers = {'(request-target)': f'post {path}','host': headerDomain,'date': dateStr,'digest': f'SHA-256={bodyDigest}','content-length': contentLength,'content-type': contentType} headers = {'(request-target)': f'post {path}','host': headerDomain,'date': dateStr,'digest': f'SHA-256={bodyDigest}','content-length': str(contentLength),'content-type': contentType}
signatureHeader = \ signatureHeader = \
signPostHeaders(dateStr,privateKeyPem,nickname, \ signPostHeaders(dateStr,privateKeyPem,nickname, \
domain,port, \ domain,port, \