Skip to content

Commit

Permalink
Merge pull request #287 from n3oney/master
Browse files Browse the repository at this point in the history
fix: uppercase origin header
  • Loading branch information
daniel-abramov authored Jun 19, 2022
2 parents b8ccbcf + 80d0547 commit fbac502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/handshake/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit fbac502

Please sign in to comment.