Improve the request verification checking
This commit is contained in:
parent
dc9df98084
commit
67643482c8
2 changed files with 12 additions and 9 deletions
|
@ -77,11 +77,7 @@ class HTTPSigAuth(AuthBase):
|
|||
sig = base64.b64encode(signer.sign(digest))
|
||||
sig = sig.decode('utf-8')
|
||||
headers = {
|
||||
'Signature': 'keyId="{keyid}",algorithm="rsa-sha256",headers="{headers}",signature="{signature}"'.format(
|
||||
keyid=self.keyid,
|
||||
signature=sig,
|
||||
headers=sigheaders,
|
||||
),
|
||||
'Signature': f'keyId="{self.keyid}",algorithm="rsa-sha256",headers="{sigheaders}",signature="{sig}"'
|
||||
}
|
||||
r.headers.update(headers)
|
||||
return r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue