pass whole PrivateKey object to ap_security, not just the key
This commit is contained in:
parent
7a1eee7990
commit
f5ab4f690a
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Inbox(object):
|
|||
]
|
||||
sign_headers = headers[:]
|
||||
sign_headers.insert(0, ["(request-target)", "post %s" % parts.path])
|
||||
signature = ap_security.signature(private_key.key, sign_headers)
|
||||
signature = ap_security.signature(private_key, sign_headers)
|
||||
|
||||
return ap_utils.request(self._url, activity.format(self),
|
||||
method="POST", private_key=private_key)
|
||||
|
|
Loading…
Reference in a new issue