Skip to content

Commit

Permalink
fix: uppercase origin header
Browse files Browse the repository at this point in the history
  • Loading branch information
n3oney committed Jun 18, 2022
1 parent b8ccbcf commit 80d0547
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 80d0547

Please sign in to comment.