[wip] remove space from signature header formatting

This commit is contained in:
Riley Apeldoorn 2024-04-30 00:09:53 +02:00
parent fc4e4595c2
commit 09cf289b75
2 changed files with 4 additions and 2 deletions

View file

@ -97,6 +97,7 @@ pub async fn resolve(key: &SigningKey, target: &str) -> reqwest::Result<Value> {
println!("[resolver]: constructed request {req:#?}"); println!("[resolver]: constructed request {req:#?}");
// hs2019 works with masto // hs2019 works with masto
println!("[resolver]: using modern config");
let sig = key.sign(Options::MODERN, &req).expect("signing error"); let sig = key.sign(Options::MODERN, &req).expect("signing error");
println!("[resolver]: constructed signature {sig:#?}"); println!("[resolver]: constructed signature {sig:#?}");
@ -123,7 +124,8 @@ pub async fn forward(key: &SigningKey, target: &str) -> reqwest::Result<http::Re
.body(()) .body(())
.unwrap(); .unwrap();
// hs2019 works with masto // hs2019 works with masto
key.sign(Options::LEGACY, &req) println!("[proxy]: using modern config");
key.sign(Options::MODERN, &req)
.expect("signing error") .expect("signing error")
.commit(&mut req); .commit(&mut req);