forked from alemi/upub
fix: acktually algorithm is required by spec
This commit is contained in:
parent
7d1473691e
commit
34a3769fba
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue