Update protocol/library/src/client.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Face
2025-09-10 16:37:24 +03:00
committed by GitHub
parent 3b2060f43b
commit 19d9c4e09f

View File

@@ -719,10 +719,8 @@ mod tests {
let original_host = "arson.dev"; let original_host = "arson.dev";
let host_header = original_host;
let handshake_request = GurtRequest::new(GurtMethod::HANDSHAKE, "/".to_string()) let handshake_request = GurtRequest::new(GurtMethod::HANDSHAKE, "/".to_string())
.with_header("Host", host_header) .with_header("Host", original_host)
.with_header("User-Agent", "GURT-Client/1.0.0"); .with_header("User-Agent", "GURT-Client/1.0.0");
assert_eq!(handshake_request.headers.get("host").unwrap(), "arson.dev"); assert_eq!(handshake_request.headers.get("host").unwrap(), "arson.dev");