From 22b1e7fd0a5d72ae2c1f7a4938e2b77a1c5e5dfb Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 17 Apr 2019 23:32:15 +0200 Subject: [PATCH] Remove un-needed check --- little_boxes/httpsig.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/little_boxes/httpsig.py b/little_boxes/httpsig.py index c6a7941..b8196ac 100644 --- a/little_boxes/httpsig.py +++ b/little_boxes/httpsig.py @@ -83,8 +83,6 @@ def verify_request(method: str, path: str, headers: Any, body: str) -> bool: except (ActivityGoneError, ActivityNotFoundError): logger.debug("cannot get public key") return False - if k.key_id() != hsig["keyId"]: - return False return _verify_h(signed_string, base64.b64decode(hsig["signature"]), k.pubkey)