mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 18:34:36 +01:00
fix ws upgrade
This commit is contained in:
parent
efe3025395
commit
8872f3b590
@ -93,8 +93,7 @@ pub fn handshake(req: &HttpRequest) -> Result<HttpResponseBuilder, HandshakeErro
|
|||||||
};
|
};
|
||||||
|
|
||||||
Ok(HttpResponse::build(StatusCode::SWITCHING_PROTOCOLS)
|
Ok(HttpResponse::build(StatusCode::SWITCHING_PROTOCOLS)
|
||||||
.header(header::CONNECTION, "upgrade")
|
.upgrade("websocket")
|
||||||
.header(header::UPGRADE, "websocket")
|
|
||||||
.header(header::TRANSFER_ENCODING, "chunked")
|
.header(header::TRANSFER_ENCODING, "chunked")
|
||||||
.header(header::SEC_WEBSOCKET_ACCEPT, key.as_str())
|
.header(header::SEC_WEBSOCKET_ACCEPT, key.as_str())
|
||||||
.take())
|
.take())
|
||||||
|
Loading…
Reference in New Issue
Block a user