fix: uppercase origin header

pull/287/head
n3oney 2 years ago
parent b8ccbcf2a1
commit 80d0547fab
No known key found for this signature in database
GPG Key ID: C786693DE727850E
  1. 4
      src/handshake/client.rs

@ -158,6 +158,10 @@ fn generate_request(mut request: Request) -> Result<(Vec<u8>, String)> {
name = "Sec-WebSocket-Protocol"; name = "Sec-WebSocket-Protocol";
} }
if name == "origin" {
name = "Origin";
}
writeln!(req, "{}: {}\r", name, v.to_str()?).unwrap(); writeln!(req, "{}: {}\r", name, v.to_str()?).unwrap();
} }

Loading…
Cancel
Save