forked from proxmox-mirrors/proxmox
websocket: add note about compat removal
this major release still needs to have an incompatible, the next one can drop setting a protocol client-side, and the one after that can remove the protocol handling on the server side. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
0786b4b98c
commit
480e213f7c
@ -692,6 +692,8 @@ impl WebSocket {
|
|||||||
.header(CONNECTION, HeaderValue::from_static("Upgrade"))
|
.header(CONNECTION, HeaderValue::from_static("Upgrade"))
|
||||||
.header(SEC_WEBSOCKET_ACCEPT, response_key);
|
.header(SEC_WEBSOCKET_ACCEPT, response_key);
|
||||||
|
|
||||||
|
// FIXME: remove compat in PBS 3.x
|
||||||
|
//
|
||||||
// We currently do not support any subprotocols and we always send binary frames,
|
// We currently do not support any subprotocols and we always send binary frames,
|
||||||
// but for backwards compatibilty we need to reply the requested protocols
|
// but for backwards compatibilty we need to reply the requested protocols
|
||||||
if let Some(ws_proto) = headers.get(SEC_WEBSOCKET_PROTOCOL) {
|
if let Some(ws_proto) = headers.get(SEC_WEBSOCKET_PROTOCOL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user