fix: does 'require_header' change anything?
This commit is contained in:
parent
923d96bd7f
commit
98cb07b547
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ async fn deliver(key: &PKey<Private>, to: &str, from: &str, payload: serde_json:
|
||||||
|
|
||||||
let signature_header = Config::new()
|
let signature_header = Config::new()
|
||||||
.dont_use_created_field()
|
.dont_use_created_field()
|
||||||
|
.require_header("host")
|
||||||
|
.require_header("date")
|
||||||
|
.require_header("digest")
|
||||||
.begin_sign("POST", &path, headers)
|
.begin_sign("POST", &path, headers)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.sign(format!("{from}#main-key"), |to_sign| {
|
.sign(format!("{from}#main-key"), |to_sign| {
|
||||||
|
|
Loading…
Reference in a new issue