Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(profiles): compare signature header case-insensitively

Steven Enamakel736b29333cdf
diff --git a/crates/openhuman-core/src/profiles/gateway_proptest_tests.rs b/crates/openhuman-core/src/profiles/gateway_proptest_tests.rs
index 49ee37890c..2a5f7be412 100644
--- a/crates/openhuman-core/src/profiles/gateway_proptest_tests.rs
+++ b/crates/openhuman-core/src/profiles/gateway_proptest_tests.rs
@@ -157,7 +157,7 @@ proptest! {
let ts = header.split(',').filter_map(|p| p.trim().strip_prefix("t=")).last();
let ts: u64 = ts.and_then(|t| t.parse().ok()).expect("accepted without a t");
prop_assert!(ts.abs_diff(NOW) <= SIGNATURE_WINDOW_SECS);
- prop_assert!(header.contains(sign(SECRET, &user, ts).split_once("v1=").unwrap().1));
+ prop_assert!(header.to_ascii_lowercase().contains(sign(SECRET, &user, ts).split_once("v1=").unwrap().1));
}
}