Update protocol/library/src/client.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user