mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 22:10:01 -04:00
fix websockets
This commit is contained in:
parent
4081ea6cce
commit
2c54b54b4f
5 changed files with 30 additions and 11 deletions
|
@ -51,15 +51,9 @@ impl EpxWebSocket {
|
|||
let key = STANDARD.encode(rand);
|
||||
|
||||
|
||||
let pathstr = if let Some(p) = url.path_and_query() {
|
||||
p.to_string()
|
||||
} else {
|
||||
url.path().to_string()
|
||||
};
|
||||
|
||||
let mut builder = Request::builder()
|
||||
.method("GET")
|
||||
.uri(pathstr)
|
||||
.uri(url.clone())
|
||||
.header("Host", host)
|
||||
.header("Origin", origin)
|
||||
.header(UPGRADE, "websocket")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue