Bump soketto to v0.7.1 (#11203)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen
2022-04-13 04:43:10 +08:00
committed by GitHub
parent ba8beeed32
commit 3fec108263
3 changed files with 7 additions and 34 deletions
@@ -123,12 +123,12 @@ impl WsServer {
let mut server = Server::new(pending_incoming);
let websocket_key = match server.receive_request().await {
Ok(req) => req.into_key(),
Ok(req) => req.key(),
Err(err) => return Err(Box::new(err) as Box<_>),
};
match server
.send_response(&{ Response::Accept { key: &websocket_key, protocol: None } })
.send_response(&{ Response::Accept { key: websocket_key, protocol: None } })
.await
{
Ok(()) => {},