Merge pull request #287 from n3oney/master

fix: uppercase origin header
pull/289/head
Daniel Abramov 3 years ago committed by GitHub
commit fbac5027ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/handshake/client.rs

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

Loading…
Cancel
Save