forked from alemi/upub
fix: correct path for signature
This commit is contained in:
parent
a99c21654d
commit
2f5344af37
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue