diff --git a/src/handshake/client.rs b/src/handshake/client.rs index 8ddac5b..0700fa2 100644 --- a/src/handshake/client.rs +++ b/src/handshake/client.rs @@ -158,6 +158,10 @@ fn generate_request(mut request: Request) -> Result<(Vec, String)> { name = "Sec-WebSocket-Protocol"; } + if name == "origin" { + name = "Origin"; + } + writeln!(req, "{}: {}\r", name, v.to_str()?).unwrap(); }