Skip to content

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

test(mcp): normalize session id header lookup in http test

Steven Enamakel0600d6e1f6d7
diff --git a/crates/openhuman-core/src/mcp/server/http_tests.rs b/crates/openhuman-core/src/mcp/server/http_tests.rs
index de69bfb6d3..4a7f415749 100644
--- a/crates/openhuman-core/src/mcp/server/http_tests.rs
+++ b/crates/openhuman-core/src/mcp/server/http_tests.rs
@@ -335,7 +335,7 @@ fn module_protocol_headers_exclude_host_authentication_secrets() {
assert!(!forwarded.contains_key("authorization"));
assert!(!forwarded.contains_key("proxy-authorization"));
assert!(!forwarded.contains_key("cookie"));
- assert_eq!(forwarded[HEADER_SESSION_ID], "session-7");
+ assert_eq!(forwarded[&HEADER_SESSION_ID.to_ascii_lowercase()], "session-7");
assert_eq!(forwarded["mcp-protocol-version"], "2025-11-25");
assert_eq!(forwarded["accept"], "application/json");
}