'security' -> 'ap_security'
This commit is contained in:
parent
665a7a8d1a
commit
7a1eee7990
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
import email.utils, urllib.parse
|
import email.utils, urllib.parse
|
||||||
from src import utils
|
from src import utils
|
||||||
from . import ap_utils
|
from . import ap_security, ap_utils
|
||||||
|
|
||||||
class Actor(object):
|
class Actor(object):
|
||||||
def __init__(self, url):
|
def __init__(self, url):
|
||||||
|
@ -48,7 +48,7 @@ class Inbox(object):
|
||||||
]
|
]
|
||||||
sign_headers = headers[:]
|
sign_headers = headers[:]
|
||||||
sign_headers.insert(0, ["(request-target)", "post %s" % parts.path])
|
sign_headers.insert(0, ["(request-target)", "post %s" % parts.path])
|
||||||
signature = security.signature(private_key.key, sign_headers)
|
signature = ap_security.signature(private_key.key, sign_headers)
|
||||||
|
|
||||||
return ap_utils.request(self._url, activity.format(self),
|
return ap_utils.request(self._url, activity.format(self),
|
||||||
method="POST", private_key=private_key)
|
method="POST", private_key=private_key)
|
||||||
|
|
Loading…
Reference in a new issue