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

View file

@ -621,7 +621,7 @@ mod new {
// Step 2. join each pair together
.map(|(k, v)| format!("{k}={v}"))
// Step 3. comma separate everything
.intersperse(", ".to_string())
.intersperse(",".to_string())
// Step 4. fold the entire thing into one
.collect::<String>()
}