From 98cb07b5471a81afc5cd303dad9c90fa05a84efd Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 21:14:01 +0100 Subject: [PATCH] fix: does 'require_header' change anything? --- src/dispatcher.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dispatcher.rs b/src/dispatcher.rs index 4dcf6ea7..7435166a 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -113,6 +113,9 @@ async fn deliver(key: &PKey, to: &str, from: &str, payload: serde_json: let signature_header = Config::new() .dont_use_created_field() + .require_header("host") + .require_header("date") + .require_header("digest") .begin_sign("POST", &path, headers) .unwrap() .sign(format!("{from}#main-key"), |to_sign| {