key_id -> key.id, missing urllib import

This commit is contained in:
jesopo 2019-09-15 11:51:51 +01:00
parent 95d67199ff
commit 665a7a8d1a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)