fix: ooo is it this one?
This commit is contained in:
parent
f2513f30c8
commit
4d06af9c54
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ async fn deliver(key: &PKey<Private>, to: &str, from: &str, payload: serde_json:
|
||||||
let payload = serde_json::to_string(&payload).unwrap();
|
let payload = serde_json::to_string(&payload).unwrap();
|
||||||
let digest = format!("sha-256={}", base64::prelude::BASE64_URL_SAFE.encode(openssl::sha::sha256(payload.as_bytes())));
|
let digest = format!("sha-256={}", base64::prelude::BASE64_URL_SAFE.encode(openssl::sha::sha256(payload.as_bytes())));
|
||||||
let host = Context::server(to);
|
let host = Context::server(to);
|
||||||
let date = chrono::Utc::now().format("%d %b %Y %H:%M:%S %Z").to_string(); // TODO literally what the fuck
|
let date = chrono::Utc::now().to_rfc2822();
|
||||||
let path = to.replace("https://", "").replace("http://", "").replace(&host, "");
|
let path = to.replace("https://", "").replace("http://", "").replace(&host, "");
|
||||||
|
|
||||||
tracing::info!("payload:\n{payload}\n{digest}");
|
tracing::info!("payload:\n{payload}\n{digest}");
|
||||||
|
|
Loading…
Reference in a new issue