[wip] remove space from signature header formatting
This commit is contained in:
parent
fc4e4595c2
commit
09cf289b75
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue