1
0
Fork 0
forked from alemi/upub

fix: correct path for signature

This commit is contained in:
əlemi 2024-03-26 20:22:15 +01:00
parent a99c21654d
commit 2f5344af37
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -109,7 +109,7 @@ async fn deliver(key: &PKey<Private>, to: &str, from: &str, payload: serde_json:
("Digest".to_string(), digest.clone()),
].into();
let path = to.replace("https://", "").replace("http://", "").split('/').next().unwrap_or("").to_string();
let path = to.replace("https://", "").replace("http://", "").replace(&host, "");
let signature_header = Config::new()
.begin_sign("POST", &path, headers)