key_id -> key.id, missing urllib import
This commit is contained in:
parent
95d67199ff
commit
665a7a8d1a
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
import email.utils
|
import email.utils, urllib.parse
|
||||||
from src import utils
|
from src import utils
|
||||||
from . import ap_utils
|
from . import ap_utils
|
||||||
|
|
||||||
|
|
|
@ -33,4 +33,4 @@ def signature(key: PrivateKey, headers: typing.List[typing.Tuple[str, str]]
|
||||||
)
|
)
|
||||||
|
|
||||||
signature = base64.b64encode(signature).decode("ascii")
|
signature = base64.b64encode(signature).decode("ascii")
|
||||||
return SIGNATURE_FORMAT % (key_id, sign_header_keys, signature)
|
return SIGNATURE_FORMAT % (key.id, sign_header_keys, signature)
|
||||||
|
|
Loading…
Reference in a new issue