From 665a7a8d1af005de8916f89bdd540fcdaa10aba7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 15 Sep 2019 11:51:51 +0100 Subject: [PATCH] key_id -> key.id, missing urllib import --- modules/fediverse/ap_actor.py | 2 +- modules/fediverse/ap_security.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fediverse/ap_actor.py b/modules/fediverse/ap_actor.py index 92502947..cc9286b8 100644 --- a/modules/fediverse/ap_actor.py +++ b/modules/fediverse/ap_actor.py @@ -1,4 +1,4 @@ -import email.utils +import email.utils, urllib.parse from src import utils from . import ap_utils diff --git a/modules/fediverse/ap_security.py b/modules/fediverse/ap_security.py index dbb57df7..e36044f7 100644 --- a/modules/fediverse/ap_security.py +++ b/modules/fediverse/ap_security.py @@ -33,4 +33,4 @@ def signature(key: PrivateKey, headers: typing.List[typing.Tuple[str, str]] ) signature = base64.b64encode(signature).decode("ascii") - return SIGNATURE_FORMAT % (key_id, sign_header_keys, signature) + return SIGNATURE_FORMAT % (key.id, sign_header_keys, signature)