mirror of https://gitlab.com/bashrc2/epicyon
Include accept within non-digest http signature
parent
ed516c8ff7
commit
a69ac4c883
|
@ -199,7 +199,8 @@ def createSignedHeader(privateKeyPem: str, nickname: str,
|
|||
headers = {
|
||||
'(request-target)': f'post {path}',
|
||||
'host': headerDomain,
|
||||
'date': dateStr
|
||||
'date': dateStr,
|
||||
'accept': contentType
|
||||
}
|
||||
signatureHeader = \
|
||||
signPostHeaders(dateStr, privateKeyPem, nickname,
|
||||
|
|
|
@ -181,7 +181,7 @@ def _getJsonSigned(session, url: str, domainFull: str, sessionHeaders: {},
|
|||
print('Signed GET url: ' + url)
|
||||
print('Signed GET httpPrefix: ' + httpPrefix)
|
||||
messageStr = ''
|
||||
withDigest = True
|
||||
withDigest = False
|
||||
signatureHeaderJson = \
|
||||
createSignedHeader(signingPrivateKeyPem, nickname, domain, port,
|
||||
toDomain, toPort, url, httpPrefix, withDigest,
|
||||
|
|
Loading…
Reference in New Issue