From 34a3769fba4e5ab877df332b857be1a3f6d1818a Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 02:27:40 +0100 Subject: [PATCH] fix: acktually algorithm is required by spec --- src/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatcher.rs b/src/dispatcher.rs index daa18d97..f9411e61 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -83,7 +83,7 @@ impl Dispatcher { let signed_string = format!("(request-target): post {request_target}\nhost: {host}\ndate: {date}"); signer.update(signed_string.as_bytes()).unwrap(); let signature = base64::prelude::BASE64_URL_SAFE.encode(signer.sign_to_vec().unwrap()); - let signature_header = format!("keyId=\"{}\",headers=\"(request-target) host date\",signature=\"{signature}\"", delivery.actor); + let signature_header = format!("keyId=\"{}\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date\",signature=\"{signature}\"", delivery.actor); if let Err(e) = reqwest::Client::new() .post(&delivery.target)