From 2f5344af37bd916e4c2173e2b0f302006d552521 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 20:22:15 +0100 Subject: [PATCH] fix: correct path for signature --- src/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatcher.rs b/src/dispatcher.rs index d1b9d45..2b83b34 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -109,7 +109,7 @@ async fn deliver(key: &PKey, 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)